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
[]
# 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.
# This option is included since the graphs can be quite large and the addition
# of features from the crate(s) to all of the graph roots can be far too verbose.
# This option can be overridden via `--feature-depth` on the cmd line
= 1
[]
# Opt-in to new config format - https://github.com/EmbarkStudios/cargo-deny/pull/611
= 2
# The path where the advisory databases are cloned/fetched into
= "$CARGO_HOME/advisory-dbs"
# The url(s) of the advisory databases to use
= ["https://github.com/rustsec/advisory-db"]
# A list of advisory IDs to ignore. Note that ignored advisories will still
# output a note when they are encountered.
= []
[]
# Opt-in to new config format - https://github.com/EmbarkStudios/cargo-deny/pull/611
= 2
# Licenses we accept, identified by their SPDX short identifier (+ optional
# exception) from https://spdx.org/licenses/
= [
"Apache-2.0",
"BSD-2-Clause",
"BSD-2-Clause-Patent",
"BSD-3-Clause",
"MIT",
"MPL-2.0",
]
= "allow"
= [
{ = ["Unicode-DFS-2016"], = "unicode-ident" },
]
# Default confidence is 0.8, let's require a higher confidence level for now.
# We can lower this later if it's too pedantic.
= 0.95
[]
# Lint level for when multiple versions of the same crate are detected. Deny
# for now to make this super obvious, though we might wish to change this back
# to the default of warn if that gets too disruptive.
#
# Background reading about the use of this check is at:
# https://embarkstudios.github.io/cargo-deny/checks/bans/index.html#use-case---duplicate-version-detection
= "deny"
= [
# When encountering multiple versions of crates that we wish to tolerate,
# specify a `<=1.2.3` for the OLDEST version in use. That way, as soon as
# whichever dependency holding us back is updated, one of two things can
# happen:
#
# 1. The dependency is updated to a version that is compatible with the
# other dependencies, resolving the duplication. At this point a WARNING
# will be generated that the `<=1.2.3` version no longer matches anything.
# 2. The dependency is updated to a version that is still not compatible
# with the other dependencies, at which point the ban action will FAIL the
# result. We can then choose to again skip that version, or decide more
# drastic action is needed.
"syn:<=1.0.109",
]
= "deny"
= false
[]
= "deny"
= "deny"
= ["https://github.com/rust-lang/crates.io-index"]
= []