-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdeny.toml
More file actions
80 lines (70 loc) · 2.31 KB
/
deny.toml
File metadata and controls
80 lines (70 loc) · 2.31 KB
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
# Configuration for cargo-deny dependency checking
# https://embarkstudios.github.io/cargo-deny/
[licenses]
# Allow common open source licenses
allow = [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"Unicode-DFS-2016",
"CC0-1.0",
]
# Confidence threshold for detecting license files
confidence-threshold = 0.8
# Some crates don't have license files, but have a known license
[[licenses.clarify]]
name = "ring"
expression = "MIT AND ISC AND OpenSSL"
license-files = [
{ path = "LICENSE", hash = 0xbd0eed23 }
]
[bans]
# Lint level for when multiple versions of the same crate are detected
multiple-versions = "warn"
# Lint level for when a crate version requirement is `*`
wildcards = "allow"
# Highlight notable crates
highlight = "all"
# List of crates that are allowed
allow = []
# List of crates to deny
deny = [
# Deny old versions of openssl due to vulnerabilities
{ name = "openssl", version = "<0.10.45" },
# Deny old versions of tokio
{ name = "tokio", version = "<1.20" },
]
# Certain crates/versions that will be skipped when doing duplicate detection
skip = []
# Skip development dependencies
skip-tree = []
[advisories]
# The path where the advisory database is cloned/fetched into
db-path = "~/.cargo/advisory-db"
# The url(s) of the advisory databases to use
db-urls = ["https://github.com/rustsec/advisory-db"]
# The lint level for security vulnerabilities
vulnerability = "deny"
# The lint level for unmaintained crates
unmaintained = "warn"
# The lint level for crates that have been yanked from their source registry
yanked = "warn"
# The lint level for crates with security notices
notice = "warn"
# A list of advisory IDs to ignore
ignore = [
# Ignore specific advisories that are false positives or acceptable risks
"RUSTSEC-2020-0071", # time - localtime_r is not thread-safe
]
[sources]
# Lint level for what to happen when a crate from a crate registry that is not in the allow list is encountered
unknown-registry = "warn"
# Lint level for what to happen when a crate from a git repository that is not in the allow list is encountered
unknown-git = "warn"
# List of URLs for allowed crate registries
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
# List of URLs for allowed Git repositories
allow-git = []