build(notices): third-party licence notices, generated and checked
Every licence the program's dependencies and bundled fonts carry (MIT, Apache-2.0, BSD, ISC, Zlib, the SIL Open Font License) asks that its copyright notice and licence text travel with each copy of the binary, and until now nothing shipped them. `just notices` (scripts/notices.sh) writes THIRD-PARTY-NOTICES.txt: cargo-about names every crate the `wanderbooks` binary links, from ledger-cli's manifest across every feature and platform the program ships on, with the licence text; the script then adds the embedded fonts and their licence files. `just notices-check`, in the lint part of `just check`, regenerates the file and fails when a dependency or font changed without it, so the committed copy cannot drift. cargo-about is a build tool used to generate and check the file; it is not a dependency of the program (no Cargo.toml or Cargo.lock changes). Its accepted list is deny.toml's allow list word for word. Co-Authored-By: DeepSeek V4.1 Flash
This commit is contained in:
1 parent
1726c8b6dd
commit
7f87ccd3d3
6 files changed
+12524
No files matched your search
@@ -30,6 +30,9 @@ node = "26"
|
||||
# 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"
|
||||
# `just notices`: cargo-about reads every crate the program links and the
|
||||
# licence it carries, to write THIRD-PARTY-NOTICES.txt.
|
||||
"cargo:cargo-about" = { version = "0.9.3", features = ["cli"] }
|
||||
# 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"
|
||||
|
||||
Reference in new issue
Block a user