Project page template · concept project. Swap the words and numbers for the real build.
A written book by iabd · 2026ledgr
A plain-text double-entry ledger. An unbalanced entry is a compile error, not a year-end surprise.
Chapter 1 · The problem
Spreadsheets let you post a journal entry where debits don't equal credits. You find out weeks later, with no idea which entry did it.
Chapter 2 · The build
Books live in plain text. A checker parses every entry and refuses to continue unless it balances. Rounding gets its own account.
fn check(e: &Entry) -> Result<(), LedgerError> {
let net: Decimal = e.lines.iter().map(|l| l.amount).sum();
if !net.is_zero() { return Err(Unbalanced { id: e.id, by: net }); }
Ok(())
}Chapter 3 · What happened
0unbalanced entries
3currencies
12 msper 10k entries
Chapter 4 · Links
The repo on GitHub ↗ · live demo coming.