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
# cargo-deny configuration file
# https://embarkstudios.github.io/cargo-deny/
[]
# Advisory database sources
= "~/.cargo/advisory-db"
= ["https://github.com/rustsec/advisory-db"]
# Ignore advisories for specific crates (use sparingly)
= [
# Example: "RUSTSEC-2020-0001",
]
[]
# License policy
= { = true }
= [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"Unicode-DFS-2016",
"Unicode-3.0",
"CC0-1.0", # Public-domain-equivalent (used by `notify`)
]
= [
# Allow specific crates to use otherwise-banned licenses
]
[]
# Dependency bans
= "warn"
= "allow"
= "all"
# Skip certain crates when checking for duplicates
= [
# Windows-specific crates that commonly have multiple versions
{ = "windows_*", = "*" },
{ = "winapi*", = "*" },
]
# Deny specific crates
= [
# Add problematic crates here
]
# Skip dependency trees for certain crates
= [
# Add crates whose dependency trees should be ignored
]
[]
# Source policy
= "warn"
= "warn"
= ["https://github.com/rust-lang/crates.io-index"]
= []