T03 Add a cargo-deny gate
Question
deny.toml is entirely absent. Add it per the standard’s supply chain page and
wire just deny:
[bans] wildcards = "deny", exhaustive[licenses] allowlist derived from the actual ~447-package graph (runcargo deny check licensesfirst to enumerate the real licences), workspace crate checked not skipped.[advisories]RustSec scan;[sources]crates.io-only (deny unknown git and registries).[graph].targets, leave a stub pointing at T14, which owns the target list.
Exit predicate
cargo deny check passes; just deny recipe exists and is listed in the T06
gate consolidation; no wildcard deps remain (or an allow-with-reason records
each exception).
Resolution
Done 2026-10-31. deny.toml passes all four checks (exit 0) and is wired
three places: just deny, a lefthook pre-push command globbed to
{Cargo.toml,Cargo.lock,deny.toml} (running the same just target, not a copy),
and a CI deny step via binstall.
What the first run found, triaged:
- Licences: rejections were
Unicode-3.0(ICU, unavoidable viaurl→idnaand every proc-macro’s unicode-ident),MPL-2.0(onlyoption-ext, viadirs), andZlib. All OSI-approved permissive/file-copyleft; allow list taken from the rust-standard template’s exhaustive set. Five unused entries warn on purpose: promoting a new licence family is now a config edit with a reason. - Wildcards: the four
bans FAILEDhits were all workspace-internal path deps (version-less by design,publish = false). Skipped by name in[[bans.skip]]; the first attempt carried areasonkey, which cargo-deny rejects, so the rationale lives in TOML comments instead. - Advisories: seven findings. Every one with an in-range fix was taken as a
surgical
cargo update -pbump (spin 0.9.8→0.9.9 yanked, anyhow→1.0.104, crossbeam-epoch→0.9.21, tokio→1.54.1, libz-sys→1.1.31, with eyre and crossbeam-utils landing on their patch releases from the same commands); a blanketcargo updatewas tried first and reverted for touching 169 unrelated deps: too broad for a gate PR. The three remaining are git2 0.19unsoundadvisories with no patched version in range; ignored with a reachability comment (cerebro never callsRemote::list, neverblame, never dereferences agit2::Buf), and T18 tracks the 0.19→0.21 evaluation that would retire the ignores. [graph].targets: the ticket said “stub it,” but ADR-0018 already made the promise, so the four triples (both arches of apple-darwin and unknown-linux-gnu) went in real; T14 adds the cross-check that enforces it.
multiple-versions = "warn" keeps foldhash/hashbrown duplicates visible
without failing: they come from sqlx and icu internals, outside this project’s control.