jpeg-encoder is licensed (MIT OR Apache-2.0) AND IJG, and IJG is not in the license allow-list, so cargo deny check licenses fails for every dependency change. Allow IJG for this crate only.
49 lines
1.6 KiB
TOML
49 lines
1.6 KiB
TOML
# cargo-deny configuration: https://embarkstudios.github.io/cargo-deny/
|
|
# Run: cargo deny --all-features check --config deny.toml advisories bans licenses sources
|
|
|
|
[advisories]
|
|
# Real vulnerabilities fail the build. The advisories below are *unmaintained*
|
|
# notices for transitive crates with no available fix; they are explicitly
|
|
# accepted until the upstream parents drop them.
|
|
ignore = [
|
|
"RUSTSEC-2025-0057", # fxhash unmaintained, transitive via selectors
|
|
"RUSTSEC-2024-0436", # paste unmaintained, transitive via v8
|
|
"RUSTSEC-2026-0206", # rustybuzz unmaintained, transitive via the pinned cosmic-text
|
|
"RUSTSEC-2026-0192", # ttf-parser unmaintained, transitive via cosmic-text and the SVG stack
|
|
]
|
|
|
|
[bans]
|
|
# Duplicate transitive versions are build-time bloat, not a security issue, and
|
|
# are largely outside our control (deno_core / v8 / reqwest trees). Surface them
|
|
# without failing the build.
|
|
multiple-versions = "warn"
|
|
wildcards = "allow"
|
|
|
|
[licenses]
|
|
# Permissive allow-list enforced by the PR policy job.
|
|
allow = [
|
|
"MIT",
|
|
"Apache-2.0",
|
|
"Apache-2.0 WITH LLVM-exception",
|
|
"BSD-2-Clause",
|
|
"BSD-3-Clause",
|
|
"ISC",
|
|
"Zlib",
|
|
"Unicode-3.0",
|
|
"MPL-2.0",
|
|
"BSL-1.0",
|
|
"CDLA-Permissive-2.0",
|
|
]
|
|
confidence-threshold = 0.8
|
|
|
|
# jpeg-encoder ports libjpeg code and carries the Independent JPEG Group
|
|
# license in addition to MIT OR Apache-2.0. Allow IJG for that crate only.
|
|
[[licenses.exceptions]]
|
|
allow = ["IJG"]
|
|
crate = "jpeg-encoder"
|
|
|
|
[sources]
|
|
unknown-registry = "deny"
|
|
unknown-git = "deny"
|
|
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
|