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
44 lines
1.3 KiB
TOML
44 lines
1.3 KiB
TOML
# What cargo-about may report when it writes THIRD-PARTY-NOTICES.txt
|
|
# (`just notices`). The accepted list is deny.toml's `allow` list, word for
|
|
# word: the gate and the notices describe the same set of licences. A
|
|
# licence that is not here is not in the program either; if cargo-about
|
|
# meets one, fix the dependency, never this list.
|
|
accepted = [
|
|
"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",
|
|
]
|
|
|
|
# Every platform the program ships on. The list is fixed rather than the
|
|
# build machine's, so the notices name the same dependencies everywhere.
|
|
targets = [
|
|
"x86_64-unknown-linux-gnu",
|
|
"aarch64-unknown-linux-gnu",
|
|
"x86_64-apple-darwin",
|
|
"aarch64-apple-darwin",
|
|
"x86_64-pc-windows-msvc",
|
|
]
|
|
|
|
# Only what the binary links: a build script's dependencies and the tests'
|
|
# are not shipped, so their licences have no notice to travel with.
|
|
ignore-build-dependencies = true
|
|
ignore-dev-dependencies = true
|
|
|
|
# The workspace's own crates are `publish = false`: they are the program,
|
|
# not third parties, and the program's own licence is stated at the top of
|
|
# the notices.
|
|
private = { ignore = true }
|