Nothing checked what the program is built from. `just deny` now does, in the lint part of `just check` and weekly in scheduled.yml (an advisory is published when it is, not when we push), from one file, deny.toml: - advisories: no crate in the lock file with a known vulnerability (RustSec), none yanked; an unmaintained crate is refused when it is one of our own direct dependencies. Two advisories are lived with, each with its reason and date: the quick-xml 0.38 that typst's citation reader brings, which no XML from outside reaches. - licences: the permissive ones, plus MPL-2.0 for one unchanged crate (option-ext) and CDLA-Permissive-2.0 for Mozilla's root certificates. No font licence is allowed, so a crate that carries fonts is refused and every font we ship is a file here beside its licence. A crate offering only a copyleft licence is refused. - sources: crates.io and the bookspec repository, nothing else. - bans: no dependency by wildcard version. The crates are marked `publish = false` (one line in the workspace, inherited by all eleven): they are parts of one program, not libraries for crates.io, and with that cargo-deny accepts their path dependencies on each other. cargo-deny 0.20.2 is a build tool pinned in mise.toml, not a dependency of the program. Shown: `just deny` prints advisories ok, bans ok, licenses ok, sources ok on this tree. Co-Authored-By: Claude <noreply@anthropic.com>
48 lines
1.7 KiB
TOML
48 lines
1.7 KiB
TOML
[package]
|
|
name = "ledger-core"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
publish.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
|