K-U7 moved payroll's net pay into the kernel and K-U8 moved the control, aging and reconciliation identities there. Their laws were written once, in bookspec's Lean: law 45 (net pay is gross less every deduction, and a payroll plan balances at any number of employees) and law 46 (the control difference, the aging total and the reconciliation total). The checker and the Lean package move to that rev together, so the pin test holds. Proved at this pin: the Kani fast set, 97 harnesses, none failed and every cover reached; Lean, 212 theorems on the standard axioms only. The Kani set was verified in two runs (93, then the 4 the whole-set time cap cut off on a loaded machine), and the Lean half in a shell of its own. Co-Authored-By: Claude <noreply@anthropic.com>
47 lines
1.7 KiB
TOML
47 lines
1.7 KiB
TOML
[package]
|
|
name = "ledger-core"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
description = "Canonical double-entry bookkeeping semantics: the engine everything else is built on."
|
|
|
|
[dependencies]
|
|
rust_decimal = { version = "1", features = ["serde"] }
|
|
thiserror = "2"
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
# company.timezone: IANA names, with the zone database built in so every
|
|
# computer reads a name the same way.
|
|
jiff = { version = "0.2.35", default-features = false, features = ["std", "tz-system", "tzdb-bundle-always"] }
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dev-dependencies]
|
|
criterion = "0.8.2"
|
|
proptest = "1"
|
|
# `tests/decimal_exact.rs`: an independent exact reference (arbitrary
|
|
# precision rationals) for `Decimal`, the one numeric type the money paths
|
|
# trust. Test-only, like every dev-dependency here.
|
|
num-bigint = "0.4"
|
|
num-rational = "0.4"
|
|
# bookspec examples are TOML (tests/bookspec/), run on the engine's own
|
|
# store (a dev-dependency only: the store depends on this crate), each in
|
|
# a directory of its own.
|
|
toml = "1"
|
|
# The specification lives in its own repository (P13 step 6, D-34, D-65),
|
|
# pinned to a commit.
|
|
bookspec-checker = { git = "https://git.swaits.com/swaits/bookspec", rev = "79cb439a3798053f71bae2cf8d4b9e882958365c" }
|
|
bookspec-runner = { git = "https://git.swaits.com/swaits/bookspec", rev = "79cb439a3798053f71bae2cf8d4b9e882958365c" }
|
|
ledger-package = { path = "../ledger-package" }
|
|
ledger-import = { path = "../ledger-import" }
|
|
ledger-store = { path = "../ledger-store" }
|
|
ledger-vault = { path = "../ledger-vault" }
|
|
tempfile = "3"
|
|
|
|
[[bench]]
|
|
name = "books"
|
|
harness = false
|