1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
//#![deny(missing_docs)]
//#![deny(private_intra_doc_links)]
//#![deny(missing_crate_level_docs)]
//#![deny(private_doc_tests)]
//! ![GitHub Workflow Status (branch)][ci]
//!
//! Minimal, safe and flexible in-memory [bookkeeping][bookkeeping] API
//!
//! ## Features
//!
//! - The book balance is guaranteed at compile time.
//! - Explicit ordering of transactions
//! - Strong support for multiple units (currencies)
//! - Use your own number types
//! - Arbitrary extra data
//! - [Introduction documentation][mod@introduction]
//!
//! ## Non-features
//!
//! Everything in this list is beyond the scope of this library:
//!
//! - Account types (asset/liability/income/expense/etc.)
//! - Reports
//!
//! ## Todo
//! - Cache balance calculations
//! - Serialization
//!
//! ## Introduction
//!
//! Read [the entire introduction][mod@introduction].
//!
//! ## A note on panics
//!
//! > "This API can panic in a bunch of places. I don't like that. I don't feel safe.
//! > How about returning `Result`s, instead?"
//!
//! `Result`s and errors are for when a function might fail despite all caution.
//! In this crate, panics would only occur on wrong usage.
//! Having this crate return `Result`s would complicate the API and — worse —
//! would give the impression that function calls could fail even when used correctly.
//! I'd like the user to be confident that with correct usage the API is safe.
//!
//! ## Get involved
//!
//! If you're using this crate, then please let me know—I'd be so happy!
//!
//! If you have a question, find an issue and/or would like to contribute,
//! please open an issue on the tracker or send me an email to
//! mightyiampresence@gmail.com.
//!
//! [ci]: https://img.shields.io/github/workflow/status/mightyiam/bookkeeping/Rust/master?logo=github
//! [bookkeeping]: https://en.wikipedia.org/wiki/Bookkeeping
introduction!;
pub use crate::;