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
# cargo-deny configuration.
#
# The point of this file is that a dependency change has to be a deliberate,
# reviewable act. A pull request that quietly adds a crate from an unexpected
# registry, or one with an open advisory, fails CI rather than relying on
# someone noticing it in the diff.
[]
# Fail on any crate with a known security advisory.
= "deny"
= []
[]
# Multiple versions of the same crate is a smell worth seeing, not a failure.
= "warn"
# Wildcard version requirements let a dependency change underneath us.
= "deny"
[]
# Anything not from crates.io has to be added here explicitly. This is the rule
# that stops a PR pointing a dependency at an arbitrary git repository.
= "deny"
= "deny"
= ["https://github.com/rust-lang/crates.io-index"]
[]
# Permissive licences only. A copyleft dependency would change the terms under
# which this crate can be used, which is a decision, not a dependency bump.
= [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"Unicode-3.0",
"Zlib",
# webpki-root-certs, the Mozilla CA root store bundled by rustls. CDLA is
# the standard licence for that certificate data rather than for code.
"CDLA-Permissive-2.0",
]
= 0.9
# The allow list is deliberately broader than what is currently in the tree, so
# a routine dependency bump does not fail on a licence that was always going to
# be acceptable. Unused entries are not a finding.
= "allow"