mirror of
https://github.com/storytold/AniCraft.git
synced 2026-11-19 09:01:29 +01:00
symphonia (MPL-2.0, via craft-audio) and jpeg-encoder (IJG, via craft-image-codecs) are crate-scoped exceptions in deny.toml, approved by the project lead; NOTICE, ATTRIBUTION.md and compliance.md name them. The shared gate doesn't run cargo-deny, so ci.yml has its own job. Raised with the shared libraries team: storytold/craft-libs#2100.
131 lines
3.5 KiB
TOML
131 lines
3.5 KiB
TOML
# cargo-deny policy: every dependency must be permissively licensed, come from crates.io and
|
|
# carry no copyleft obligation on AniCraft. Run: cargo deny check licenses bans sources
|
|
# (and `cargo deny check advisories` when online). See docs/legal/compliance.md.
|
|
|
|
[graph]
|
|
# Check every platform we ship (Windows, macOS, Linux, wasm), not just the host.
|
|
all-features = false
|
|
|
|
[licenses]
|
|
# Permissive licenses only. Where a crate offers a choice ("MIT OR GPL"), cargo-deny picks the
|
|
# permissive one; nothing in our tree is accepted under a copyleft term.
|
|
allow = [
|
|
"MIT",
|
|
"Apache-2.0",
|
|
"Apache-2.0 WITH LLVM-exception",
|
|
"BSD-2-Clause",
|
|
"BSD-3-Clause",
|
|
"ISC",
|
|
"Zlib",
|
|
"0BSD",
|
|
"BSL-1.0",
|
|
"Unicode-3.0",
|
|
"Unlicense",
|
|
]
|
|
confidence-threshold = 0.93
|
|
|
|
# Font licenses are allowed only for the crate that embeds egui's default UI fonts.
|
|
[[licenses.exceptions]]
|
|
crate = "epaint_default_fonts"
|
|
allow = ["OFL-1.1", "Ubuntu-font-1.0"]
|
|
|
|
# Approved for the Mozilla certificate data pulled in by the shared HTTPS updater.
|
|
# The exception applies to this data crate and version, not application code.
|
|
[[licenses.exceptions]]
|
|
crate = "webpki-root-certs@=1.0.12"
|
|
allow = ["CDLA-Permissive-2.0"]
|
|
|
|
# Approved by the project lead (2026-11-17) for the shared Craft libraries: `craft-audio` decodes
|
|
# through symphonia (MPL-2.0, file-level copyleft, used unmodified; its source is linked from
|
|
# ATTRIBUTION.md) and `craft-image-codecs` encodes JPEG with jpeg-encoder (IJG, acknowledged in
|
|
# NOTICE). Scoped to these crates; the allowlist above is unchanged. Raised with the shared
|
|
# libraries team: storytold/craft-libs#2100.
|
|
[[licenses.exceptions]]
|
|
crate = "symphonia"
|
|
allow = ["MPL-2.0"]
|
|
|
|
[[licenses.exceptions]]
|
|
crate = "symphonia-core"
|
|
allow = ["MPL-2.0"]
|
|
|
|
[[licenses.exceptions]]
|
|
crate = "symphonia-common"
|
|
allow = ["MPL-2.0"]
|
|
|
|
[[licenses.exceptions]]
|
|
crate = "symphonia-metadata"
|
|
allow = ["MPL-2.0"]
|
|
|
|
[[licenses.exceptions]]
|
|
crate = "symphonia-bundle-flac"
|
|
allow = ["MPL-2.0"]
|
|
|
|
[[licenses.exceptions]]
|
|
crate = "symphonia-bundle-mp3"
|
|
allow = ["MPL-2.0"]
|
|
|
|
[[licenses.exceptions]]
|
|
crate = "symphonia-codec-aac"
|
|
allow = ["MPL-2.0"]
|
|
|
|
[[licenses.exceptions]]
|
|
crate = "symphonia-codec-adpcm"
|
|
allow = ["MPL-2.0"]
|
|
|
|
[[licenses.exceptions]]
|
|
crate = "symphonia-codec-alac"
|
|
allow = ["MPL-2.0"]
|
|
|
|
[[licenses.exceptions]]
|
|
crate = "symphonia-codec-pcm"
|
|
allow = ["MPL-2.0"]
|
|
|
|
[[licenses.exceptions]]
|
|
crate = "symphonia-codec-vorbis"
|
|
allow = ["MPL-2.0"]
|
|
|
|
[[licenses.exceptions]]
|
|
crate = "symphonia-format-caf"
|
|
allow = ["MPL-2.0"]
|
|
|
|
[[licenses.exceptions]]
|
|
crate = "symphonia-format-isomp4"
|
|
allow = ["MPL-2.0"]
|
|
|
|
[[licenses.exceptions]]
|
|
crate = "symphonia-format-mkv"
|
|
allow = ["MPL-2.0"]
|
|
|
|
[[licenses.exceptions]]
|
|
crate = "symphonia-format-ogg"
|
|
allow = ["MPL-2.0"]
|
|
|
|
[[licenses.exceptions]]
|
|
crate = "symphonia-format-riff"
|
|
allow = ["MPL-2.0"]
|
|
|
|
[[licenses.exceptions]]
|
|
crate = "jpeg-encoder"
|
|
allow = ["IJG"]
|
|
|
|
[licenses.private]
|
|
# Our own workspace crates are MIT OR Apache-2.0 (checked by `cargo deny` like any other crate).
|
|
ignore = false
|
|
|
|
[bans]
|
|
multiple-versions = "allow"
|
|
# Path dependencies inside the workspace have no version; that is fine for unpublished crates.
|
|
wildcards = "deny"
|
|
allow-wildcard-paths = true
|
|
|
|
[sources]
|
|
unknown-registry = "deny"
|
|
unknown-git = "deny"
|
|
# Shared updater implementation, pinned to a reviewed commit in Cargo.toml.
|
|
allow-git = ["https://github.com/storytold/craft-libs"]
|
|
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
|
|
|
|
[advisories]
|
|
# Fetched from the RustSec database when online.
|
|
yanked = "warn"
|