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>
40 lines
1.8 KiB
TOML
40 lines
1.8 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"
|
|
# 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"
|