Files
swaitsandClaude Fable 5.2 cf1644627f fix(deps): ignore RUSTSEC-2026-0543, chrono's unmaintained notice
Not a vulnerability and no upgrade is offered; replacing chrono with jiff
is the owner's decision.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 08:18:08 -07:00

93 lines
4.0 KiB
TOML

# What a dependency must be for wanderbooks to build on it (`just deny`,
# part of `just check`). Four questions, each a refusal:
# advisories: no known vulnerability (RustSec), nothing yanked
# licenses: only licences that fit a program shipped MIT OR Apache-2.0
# sources: crates.io, and the one git repository named below
# bans: no dependency by wildcard version
# An exception goes here with its reason and a date, never on the command
# line.
[graph]
# The viewer, the server-only build and every platform's dependencies.
all-features = true
[advisories]
yanked = "deny"
# "Unmaintained" is not "vulnerable". A crate wanderbooks itself depends on
# must be maintained, since that one is ours to replace. One that arrives
# through typst or the egui stack (bincode, yaml-rust, paste, rustybuzz,
# ttf-parser, zvariant on 2026-11-09) is theirs to replace, and a known
# vulnerability in it is still refused above.
unmaintained = "workspace"
# RustSec ids deliberately lived with, each with why and since when.
ignore = [
# quick-xml 0.38 (a slow or memory-hungry parse of hostile XML). The
# reader's own quick-xml, which does parse files from outside, is 0.42.
# This older copy comes through typst (typst -> hayagriva ->
# citationberg) and parses citation styles only. wanderbooks renders
# its own compiled-in templates, with no bibliography and no file
# access, so no XML from outside reaches it. Remove these two lines
# when typst moves to a citationberg on quick-xml 0.41 or later.
# Since 2026-11-09.
{ id = "RUSTSEC-2026-0194", reason = "typst's citationberg only; no outside XML reaches it" },
{ id = "RUSTSEC-2026-0195", reason = "typst's citationberg only; no outside XML reaches it" },
# chrono 0.4.45, RUSTSEC-2026-0543: an "unmaintained" notice, not a
# vulnerability, and the advisory offers no upgrade. chrono is a
# declared dependency of ledger-core, so the "workspace" rule above
# catches it. Replacing chrono with jiff (already a dependency) is a
# follow-up for the owner to decide. Since 2026-11-21.
{ id = "RUSTSEC-2026-0543", reason = "unmaintained notice only, not a vulnerability; no upgrade offered; chrono to jiff is the owner's call" },
]
[licenses]
# Permissive licences, and two that are not plain permissive, each for
# a named crate:
# MPL-2.0: option-ext (through dirs). File-level copyleft: it binds
# changes to that crate's own files, and we ship it unchanged.
# CDLA-Permissive-2.0: Mozilla's root certificates (webpki-root-certs).
# No font licence is on the list (OFL-1.1, Ubuntu-font-1.0): a crate that
# brings fonts under one is refused. The OFL itself fits (Inter is under
# it); the point is that every font the program ships is a file in this
# repository beside its licence (crates/ledger-gui/assets/fonts/README.md,
# crates/ledger-import/fonts/), not something a dependency carried in.
# That keeps out egui's default set (epaint_default_fonts), which holds
# Ubuntu Light under the Ubuntu Font Licence 1.0, non-free to Debian and
# Fedora.
# GPL and LGPL appear in the tree only as one choice of an OR (self_cell,
# r-efi); cargo-deny takes the permissive side. A crate offering only a
# copyleft licence is refused here, which is the point.
allow = [
"MIT",
"MIT-0",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"Zlib",
"0BSD",
"BSL-1.0",
"CC0-1.0",
"Unlicense",
"Unicode-3.0",
"bzip2-1.0.6",
"MPL-2.0",
"CDLA-Permissive-2.0",
]
confidence-threshold = 0.9
[bans]
# Several versions of one crate are a cost in build time, not a risk:
# the GUI stack brings many. A wildcard version is a risk.
multiple-versions = "allow"
wildcards = "deny"
allow-wildcard-paths = true
[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
# bookspec, the specification and its checker (D-68), pinned by rev in
# crates/ledger-core/Cargo.toml.
allow-git = ["https://git.swaits.com/swaits/bookspec"]