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
73
74
75
76
# cargo-deny configuration: license + advisory + ban + source policies
# for the hvac dependency tree. Run locally with `cargo deny check`.
#
# This file is the source of truth for what supply-chain hygiene CI
# enforces; the `deny` job in .github/workflows/ci.yml runs the same
# command. If you're adding a dependency that fails any check below,
# either pick a different dep or add a justified exception here with a
# comment explaining why.
[]
# Restrict to the targets we actually ship binaries for. Cuts out
# Windows-only / wasm-only crates from the advisory + license check.
= [
{ = "x86_64-unknown-linux-gnu" },
{ = "aarch64-unknown-linux-gnu" },
{ = "x86_64-apple-darwin" },
{ = "aarch64-apple-darwin" },
]
= true
[]
= 2
# yanked = "deny" means a yanked dep fails the build. RustSec doesn't
# auto-yank for vulnerabilities — fail those via the advisories DB.
= "deny"
= []
[]
= 2
# Permissive licenses we're happy to ship. hvac itself is MIT.
= [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"Unicode-3.0",
"Unicode-DFS-2016",
"MPL-2.0", # weak copyleft; fine for linking
"Zlib",
"CC0-1.0",
# CDLA-Permissive-2.0 is the Linux Foundation's permissive
# data license; webpki-roots 0.26.11+ and 1.0.7 ship the
# Mozilla CA bundle under it. SPDX-listed permissive license,
# safe for redistribution alongside an MIT binary. Pulled in
# transitively via hyper-rustls / rustls — no direct dep.
"CDLA-Permissive-2.0",
]
# 0.8 = "at least 80 % confidence the detected license matches a
# Spec license-id". Crates that score lower need an explicit
# `clarify` entry below.
= 0.8
# `unused-allowed-license = "warn"` flags entries in the `allow` list
# above that nothing in the graph actually uses — purely a hygiene check
# on this config file, not a check on the crates themselves. The real
# guardrail against unlicensed crates is the `allow` list: anything
# without a matching license-id (or a `clarify` override) fails the
# build automatically.
= "warn"
[]
# Two crates with identical names at different versions usually means
# we have a transitive dep pinning an older minor. Warn so we notice;
# the explicit `deny` list catches truly problematic duplicates.
= "warn"
= "deny"
# Deny known-bad crates here as we discover them. Empty by default.
= []
[]
= "deny"
= "deny"
= ["https://github.com/rust-lang/crates.io-index"]
= []