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>
25 lines
902 B
TOML
25 lines
902 B
TOML
[package]
|
|
name = "ledger-reader"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
license = "MIT OR Apache-2.0"
|
|
publish.workspace = true
|
|
description = "The one reader: a PDF's text and pages, an XLSX's cells as exact decimal strings (plan P6, D-61)."
|
|
|
|
[dependencies]
|
|
thiserror = "2"
|
|
# Extraction (plan P6): a PDF's text, a page's pixels, an XLSX's cells.
|
|
# hayro (the renderer) and hayro-interpret (the text interpreter) are pure
|
|
# Rust and already the viewer's PDF reader, so the server and the viewer
|
|
# read a receipt through one implementation rather than two; `zip` and
|
|
# `quick-xml` read a spreadsheet's XML. None of them touches money: a
|
|
# number is kept as the decimal string the XML holds.
|
|
hayro = { version = "0.8", features = ["embed-fonts"] }
|
|
hayro-interpret = "0.8"
|
|
kurbo = "0.13"
|
|
zip = { version = "9.0.1", default-features = false, features = ["deflate"] }
|
|
quick-xml = "0.42"
|
|
|
|
[lints]
|
|
workspace = true
|