#![forbid(unsafe_code)]
#![warn(missing_docs)]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(
test,
allow(
clippy::unwrap_used,
clippy::expect_used,
clippy::panic,
clippy::indexing_slicing,
clippy::arithmetic_side_effects
)
)]
pub mod account;
pub mod balance;
pub mod canonical;
pub mod checkpoint;
pub mod clearing;
pub mod closing;
pub mod dimensions;
pub mod entry;
pub mod hash;
pub mod journal;
pub mod merkle;
pub mod money;
pub mod period;
pub mod posting;
pub mod seal;
mod serde_support;
pub mod storage;
pub use account::{Account, AccountError, AccountId, AccountKind, AccountPath, AccountRegistry};
pub use balance::{Balance, BalanceKey, TrialBalance};
pub use canonical::{Canonical, CanonicalWriter};
pub use checkpoint::{AssertionOutcome, BalanceAssertion, Checkpoint, CheckpointError};
pub use clearing::{
ClearedItem, Clearing, ClearingError, ClearingEvent, ClearingId, ClearingRegister, OpenItem,
PostingLookup, PostingRef,
};
pub use closing::{ClosingError, closing_postings};
pub use dimensions::{
ActivityId, CostObjectId, DimensionError, Dimensions, Label, PartyId, SegmentId,
};
pub use entry::{
Balanced, CurrencyPolicy, Description, DocumentRef, Draft, Entry, EntryFieldError, EntryId,
IdempotencyKey, IntegrityError, LedgerPolicy, Provenance, SealContext, ValidationError,
ValidationErrors,
};
pub use hash::{Hash, ParseHashError};
pub use journal::{Journal, JournalError, LogIndex, NotSequenced, Recorded};
pub use merkle::{
ConsistencyProof, InclusionProof, MerkleAccumulator, MerkleLog, ProofError, TreeHead,
empty_root, leaf_hash,
};
pub use money::{Amount, Currency, MoneyError};
pub use period::{LedgerId, Period, PeriodCalendar, PeriodError, PeriodId, PeriodState};
pub use posting::{Direction, Layer, Posting};
pub use seal::{PeriodCoverage, Seal, SealChain, SealChainError, trial_balance_root};
pub use storage::{
BatchError, Cursor, DynLedgerStore, EntryBatch, LedgerStore, MemoryStore, MemoryStoreError,
Page, StatementLine, StatementPage, StoredEntry,
};
#[cfg(doctest)]
#[doc = include_str!("../README.md")]
pub struct ReadmeExamples;