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 configuration.
#
# Run locally: `cargo deny check`
# CI gate: .github/workflows/test.yml :: audit job
[]
# Check every target the VFS backend matrix covers. A vulnerable Windows-only
# dep that never appears on Linux still ships to users.
= [
{ = "x86_64-unknown-linux-gnu" },
{ = "aarch64-unknown-linux-gnu" },
{ = "x86_64-pc-windows-msvc" },
{ = "aarch64-apple-darwin" },
{ = "x86_64-apple-darwin" },
{ = "aarch64-apple-ios" },
{ = "aarch64-linux-android" },
{ = "armv7-linux-androideabi" },
{ = "wasm32-unknown-unknown" },
{ = "wasm32-wasip1" },
]
# ────────────────────────────────────────────────────────────────────────
# Security advisories — the load-bearing check for a crypto-dependent
# crate. Any RustSec advisory against a dep (transitive or direct) fails CI.
[]
= 2
= "deny"
= [
# Add advisory IDs here with a comment explaining the exception, e.g.
# "RUSTSEC-YYYY-NNNN", # only triggers on a code path we don't use; see #123
]
# ────────────────────────────────────────────────────────────────────────
# Licenses — allow-list. Anything not on this list fails CI.
[]
= 2
= [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"Unicode-3.0",
"Unicode-DFS-2016",
"Zlib",
"CC0-1.0",
"MPL-2.0", # weak-copyleft on file-level; fine for libraries we link
]
= 0.93
# ────────────────────────────────────────────────────────────────────────
# Banned / required crates. Empty for now; populate as policies emerge.
[]
= "warn" # warn (not deny) — common in transitive trees
= "deny" # no `foo = "*"` deps in our Cargo.toml
= "all"
= [
# { name = "openssl", version = "<0.10" }, # example
]
= [
# Some transitive trees legitimately pull multiple versions; list them
# here once known. Empty start = surface everything as a warning.
]
# ────────────────────────────────────────────────────────────────────────
# Where deps may be sourced from. crates.io only — no git-pin deps.
[]
= "deny"
= "deny"
= ["https://github.com/rust-lang/crates.io-index"]
= []