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
77
78
79
80
81
82
83
84
85
86
# Configuration for cargo-deny
# See: https://embarkstudios.github.io/cargo-deny/
[]
= [
{ = "x86_64-unknown-linux-gnu" },
{ = "x86_64-unknown-linux-musl" },
{ = "x86_64-apple-darwin" },
{ = "aarch64-apple-darwin" },
{ = "x86_64-pc-windows-msvc" },
]
[]
# The path where the advisory database is cloned/fetched into
= "~/.cargo/advisory-db"
# The url(s) of the advisory databases to use
= ["https://github.com/rustsec/advisory-db"]
# The lint level for unmaintained crates
= "all"
# The lint level for crates that have been yanked from their source registry
= "deny"
# A list of advisory IDs to ignore
= [
# Add specific advisory IDs to ignore if needed
]
[]
# Confidence threshold for detecting a license from a license text (higher = stricter)
= 0.9
# Private licenses are not allowed
= { = false, = [] }
# Warn if an allowed license is not used in the dependency graph
= "warn"
# List of explicitly allowed licenses (single licenses only)
= [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"Unicode-3.0",
"Unicode-DFS-2016",
"Unlicense",
"BSL-1.0",
"CC0-1.0",
"CDLA-Permissive-2.0",
"LGPL-2.1-or-later",
"Zlib",
]
# For compound licenses, we'll be permissive and only block if they contain denied licenses
= []
[]
# Lint level for when multiple versions of the same crate are detected
= "warn"
# Lint level for when a crate version requirement is `*`
= "deny"
# The graph highlighting used when creating dotgraphs for crates with multiple versions
= "all"
# List of crates that are allowed
= []
# List of crates to deny - focus on actual security/legal issues
= [
# Prefer rustls over OpenSSL for security and licensing simplicity
{ = "openssl-sys", = "*" },
{ = "openssl", = "*" },
]
# Skip checking certain crates that are known to have complex but acceptable licensing
= []
= []
[]
# Lint level for what to happen when a crate from a crate registry that is not in the allow list
= "deny"
# Lint level for what to happen when a crate from a git repository that is not in the allow list
= "deny"
# List of URLs for allowed crate registries
= ["https://github.com/rust-lang/crates.io-index"]
# List of URLs for allowed Git repositories
= []