Every licence the program's dependencies and bundled fonts carry (MIT, Apache-2.0, BSD, ISC, Zlib, the SIL Open Font License) asks that its copyright notice and licence text travel with each copy of the binary, and until now nothing shipped them. `just notices` (scripts/notices.sh) writes THIRD-PARTY-NOTICES.txt: cargo-about names every crate the `wanderbooks` binary links, from ledger-cli's manifest across every feature and platform the program ships on, with the licence text; the script then adds the embedded fonts and their licence files. `just notices-check`, in the lint part of `just check`, regenerates the file and fails when a dependency or font changed without it, so the committed copy cannot drift. cargo-about is a build tool used to generate and check the file; it is not a dependency of the program (no Cargo.toml or Cargo.lock changes). Its accepted list is deny.toml's allow list word for word. Co-Authored-By: DeepSeek V4.1 Flash
43 lines
2.0 KiB
TOML
43 lines
2.0 KiB
TOML
# Everything needed to build, test, prove, and ship wanderbooks.
|
|
# `mise install` in this directory, then `just` lists the recipes.
|
|
|
|
[tools]
|
|
# Workspace toolchain (clippy and rustfmt for `just check`).
|
|
rust = [
|
|
{ version = "1.99", components = "clippy,rustfmt", targets = "x86_64-pc-windows-msvc" },
|
|
# Fuzzing (cargo-fuzz), Miri and branch coverage need nightly; pinned so
|
|
# runs repeat. `llvm-tools` is what cargo-llvm-cov reads profiles with.
|
|
{ version = "nightly-2026-10-01", components = "miri,rust-src,llvm-tools" },
|
|
]
|
|
just = "1"
|
|
# `just oracle` reads the pinned bookspec's path from `cargo metadata`.
|
|
jq = "1.7.1"
|
|
# `just deploy` runs the Netlify CLI through npx.
|
|
node = "26"
|
|
# `just prove`: Kani model-checks the accounting kernel. Kani fetches its
|
|
# own pinned nightly and CBMC under ~/.kani on first run.
|
|
"cargo:kani-verifier" = "0.68.0"
|
|
# `just prove`: Lean proves the accounting laws (bookspec's, required by
|
|
# verify/lean). Matches verify/lean/lean-toolchain.
|
|
"github:leanprover/lean4" = "4.34.1"
|
|
# Mutation testing and fuzzing (docs/oracle.md).
|
|
"cargo:cargo-mutants" = "27.1.0"
|
|
"cargo:cargo-fuzz" = "0.13.2"
|
|
# `just coverage`: line and branch coverage of the core and the store
|
|
# (docs/coverage-floor.md).
|
|
"cargo:cargo-llvm-cov" = "0.9.1"
|
|
# `just deny` (in `just check`): no dependency with a known vulnerability,
|
|
# none yanked, none under a licence that does not fit MIT OR Apache-2.0,
|
|
# none from a source nobody named (deny.toml).
|
|
cargo-deny = "0.20.2"
|
|
# `just notices`: cargo-about reads every crate the program links and the
|
|
# licence it carries, to write THIRD-PARTY-NOTICES.txt.
|
|
"cargo:cargo-about" = { version = "0.9.3", features = ["cli"] }
|
|
# A compile cache shared by every jj workspace's target dir: point
|
|
# cargo's build.rustc-wrapper at it (~/.cargo/config.toml).
|
|
sccache = "0.18.0"
|
|
# `just package-linux` (docs/packaging.md): the AppImage and .deb by
|
|
# cargo-packager, the .rpm by cargo-generate-rpm (D-25).
|
|
"cargo:cargo-packager" = "0.11.8"
|
|
"cargo:cargo-generate-rpm" = "0.21.1"
|