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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
# This template contains all of the possible sections and their default values
# Note that all fields that take a lint level have these possible values:
# * deny - An error will be produced and the check will fail
# * warn - A warning will be produced, but the check will not fail
# * allow - No warning or error will be produced, though in some cases a note will be
# Root options
# The graph table configures how the dependency graph is constructed and thus
# which crates the checks are performed against
[]
# If 1 or more target triples (and optionally, target_features) are specified,
# only the specified targets will be checked when running `cargo deny check`.
= [
#"x86_64-unknown-linux-musl",
#{ triple = "wasm32-unknown-unknown", features = ["atomics"] },
]
# When creating the dependency graph used as the source of truth when checks are
# executed, this field can be used to prune crates from the graph, removing them
# from the view of cargo-deny.
#exclude = []
# If true, metadata will be collected with `--all-features`.
= false
# If true, metadata will be collected with `--no-default-features`.
= false
# If set, these feature will be enabled when collecting metadata.
#features = []
# The output table provides options for how/if diagnostics are outputted
[]
# When outputting inclusion graphs in diagnostics that include features, this
# option can be used to specify the depth at which feature edges will be added.
= 1
# This section is considered when running `cargo deny check advisories`
[]
# The path where the advisory databases are cloned/fetched into
#db-path = "$CARGO_HOME/advisory-dbs"
# The url(s) of the advisory databases to use
#db-urls = ["https://github.com/rustsec/advisory-db"]
# A list of advisory IDs to ignore.
= [
#"RUSTSEC-0000-0000",
#{ id = "RUSTSEC-0000-0000", reason = "you can specify a reason the advisory is ignored" },
#"a-crate-that-is-yanked@0.1.1",
#{ crate = "a-crate-that-is-yanked@0.1.1", reason = "you can specify why you are ignoring the yanked crate" },
]
# If this is true, then cargo deny will use the git executable to fetch advisory database.
#git-fetch-with-cli = true
# This section is considered when running `cargo deny check licenses`
[]
# List of explicitly allowed licenses
# See https://spdx.org/licenses/ for list of possible licenses
= [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"CC0-1.0",
"Unlicense",
"Unicode-3.0",
"Zlib",
"MPL-2.0",
]
# The confidence threshold for detecting a license from license text.
= 0.8
# Allow 1 or more licenses on a per-crate basis
= [
#{ allow = ["Zlib"], crate = "adler32" },
]
# Some crates don't have (easily) machine readable licensing information
#[[licenses.clarify]]
#crate = "ring"
#expression = "MIT AND ISC AND OpenSSL"
#license-files = [
# { path = "LICENSE", hash = 0xbd0eed23 }
#]
[]
# If true, ignores workspace crates that aren't published, or are only
# published to private registries.
= false
# One or more private registries that you might publish crates to
= [
#"https://sekretz.com/registry
]
# This section is considered when running `cargo deny check bans`.
[]
# Lint level for when multiple versions of the same crate are detected
= "warn"
# Lint level for when a crate version requirement is `*`
= "allow"
# The graph highlighting used when creating dotgraphs for crates
# with multiple versions
= "all"
# The default lint level for `default` features for crates that are members of
# the workspace that is being checked.
= "allow"
# The default lint level for `default` features for external crates that are not
# members of the workspace.
= "allow"
# List of crates that are allowed.
= [
#"ansi_term@0.11.0",
#{ crate = "ansi_term@0.11.0", reason = "you can specify a reason it is allowed" },
]
# If true, workspace members are automatically allowed even when using deny-by-default
= false
# List of crates to deny
= [
#"ansi_term@0.11.0",
#{ crate = "ansi_term@0.11.0", reason = "you can specify a reason it is banned" },
# Wrapper crates can optionally be specified to allow the crate when it
# is a direct dependency of the otherwise banned crate
#{ crate = "ansi_term@0.11.0", wrappers = ["this-crate-directly-depends-on-ansi_term"] },
]
# List of features to allow/deny
#[[bans.features]]
#crate = "reqwest"
# Features to not allow
#deny = ["json"]
# Features to allow
#allow = [
# "rustls",
# "__rustls",
# "__tls",
# "hyper-rustls",
# "rustls",
# "rustls-pemfile",
# "rustls-tls-webpki-roots",
# "tokio-rustls",
# "webpki-roots",
#]
# If true, the allowed features must exactly match the enabled feature set.
#exact = true
# Certain crates/versions that will be skipped when doing duplicate detection.
= [
#"ansi_term@0.11.0",
#{ crate = "ansi_term@0.11.0", reason = "you can specify a reason why it can't be updated/removed" },
]
# Similarly to `skip` allows you to skip certain crates during duplicate
# detection. Unlike skip, it also includes the entire tree of transitive
# dependencies starting at the specified crate, up to a certain depth.
= [
#"ansi_term@0.11.0",
#{ crate = "ansi_term@0.11.0", depth = 20 },
]
# This section is considered when running `cargo deny check sources`.
[]
# Lint level for what to happen when a crate from a crate registry that is not
# in the allow list is encountered
= "warn"
# Lint level for what to happen when a crate from a git repository that is not
# in the allow list is encountered
= "warn"
# List of URLs for allowed crate registries. Defaults to the crates.io index
# if not specified. If it is specified but empty, no registries are allowed.
= ["https://github.com/rust-lang/crates.io-index"]
# List of URLs for allowed Git repositories
= []
[]
# github.com organizations to allow git sources for
= []
# gitlab.com organizations to allow git sources for
= []
# bitbucket.org organizations to allow git sources for
= []