1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# cargo-deny config. Schema version 2.
# Run: cargo deny check advisories bans licenses sources
[]
# Check the full target matrix the crates actually support.
= true
[]
# version 2: vulnerabilities are always denied. Tune via `ignore` only.
= ["https://github.com/RustSec/advisory-db"]
# Flag unmaintained crates in our own tree; ignore deep transitive noise
# we cannot act on.
= "workspace"
= "deny"
= [
# Add advisory IDs here with a one-line reason when triage decides to
# accept the risk, e.g.:
# { id = "RUSTSEC-0000-0000", reason = "no fix available; not reachable" },
]
[]
# Permissive set verified satisfiable across the estate's current Rust trees
# (via cargo-deny). Extend deliberately, with the license named here, when a
# new dep needs it — never silence the check.
= [
"MIT",
"MIT-0",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"Unicode-3.0",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"Zlib",
"0BSD",
"MPL-2.0",
"Unlicense",
"CC0-1.0",
# webpki-roots / webpki-root-certs ship Mozilla's CA store under this
# permissive data license; any tree with rustls-platform-verifier (reqwest)
# carries it.
"CDLA-Permissive-2.0",
]
= 0.8
# Private, unpublished workspace crates carry no license field by design; skip
# them instead of licensing what never ships. Pair with `publish = false` in
# each private crate's Cargo.toml — cargo-deny only treats marked crates as
# private.
= { = true }
= [
# Per-crate license carve-outs go here if a crate needs a license not in
# the global allow list, e.g.:
# { allow = ["..."], crate = "some-crate" },
]
[]
# Duplicate versions are common in a large tree (tauri especially); surface
# them without failing the build.
= "warn"
= "warn"
# Path and git deps in our own workspace use version pins, not registry
# wildcards; do not flag them.
= true
= []
= []
= []
[]
# Only crates.io by default; flag anything else for review.
= "warn"
= "warn"
= ["https://github.com/rust-lang/crates.io-index"]