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.8 KiB
TOML
48 lines
1.8 KiB
TOML
[workspace]
|
|
resolver = "2"
|
|
members = ["crates/ledger-core", "crates/ledger-store", "crates/ledger-config", "crates/ledger-mcp", "crates/ledger-import", "crates/ledger-reader", "crates/ledger-cli", "crates/ledger-gui", "crates/ledger-vault", "crates/ledger-host", "crates/ledger-package"]
|
|
|
|
[workspace.package]
|
|
edition = "2024"
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://git.swaits.com/swaits/wanderbooks"
|
|
# The crates are parts of one program, built from this tree and shipped as
|
|
# its packages. None is a library for crates.io, and saying so lets
|
|
# `cargo deny` accept their path dependencies on each other.
|
|
publish = false
|
|
|
|
[workspace.lints.rust]
|
|
missing_docs = "warn"
|
|
# `cargo kani` sets cfg(kani) for the proof harnesses.
|
|
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(kani)"] }
|
|
|
|
# Argon2id at the plan's 64 MiB, three passes, takes seconds unoptimized:
|
|
# its crates are built optimized in debug and test builds too.
|
|
[profile.dev.package.argon2]
|
|
opt-level = 3
|
|
|
|
[profile.dev.package.blake2]
|
|
opt-level = 3
|
|
|
|
# `wanderbooks update` hashes and verifies a whole program (P11a); its
|
|
# tests do it over a debug build's hundreds of megabytes.
|
|
[profile.dev.package.sha2]
|
|
opt-level = 3
|
|
|
|
[profile.dev.package.minisign]
|
|
opt-level = 3
|
|
|
|
[profile.dev.package.minisign-verify]
|
|
opt-level = 3
|
|
|
|
# The program that ships in the packages (P11a): symbols stripped, so the
|
|
# AppImage, .deb and .rpm are not carrying debug tables.
|
|
[profile.release]
|
|
strip = "symbols"
|
|
# The shipped program refuses the way the tested one does. Without this an
|
|
# integer that overflows wraps silently in a release build and panics in
|
|
# a test build, so the tests would be checking a program nobody runs.
|
|
# Money is Decimal and goes through the kernel's checked arithmetic; this
|
|
# covers the integers around it (counts, sequence numbers, minor units).
|
|
overflow-checks = true
|