-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeny.toml
More file actions
63 lines (55 loc) · 1.47 KB
/
deny.toml
File metadata and controls
63 lines (55 loc) · 1.47 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
# cargo-deny configuration
# Run: cargo deny check
# CI: see .github/workflows/ci.yml
[advisories]
# Vulnerability database
db-path = "~/.cargo/advisory-db"
db-urls = ["https://github.com/rustsec/advisory-db"]
# Error on any unignored vulnerability
deny = ["unsound", "unmaintained", "yanked", "notice"]
ignore = []
[licenses]
# Allowed SPDX license expressions
allow = [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"MPL-2.0",
"ISC",
"BSD-2-Clause",
"BSD-3-Clause",
"Unicode-DFS-2016",
"OpenSSL",
"CC0-1.0",
"Unlicense",
"Zlib",
]
# Deny these licenses explicitly
deny = [
"GPL-2.0", # GPL v2 only — no later or with exceptions
"AGPL-3.0", # Our own code is AGPL; deny dependencies that are also AGPL
# unless they're intentionally included
]
# Confidence threshold for licence detection
confidence-threshold = 0.8
[licenses.private]
ignore = false
[bans]
# Disallow multiple versions of these crates
multiple-versions = "warn"
wildcards = "allow"
# Deny these crates entirely
deny = [
# Avoid old, unmaintained crypto
{ name = "rust-crypto" },
# Use rustls instead of openssl where possible
# (openssl is allowed as a transitive dep of some C libs)
]
# Skip duplicate version checks for crates known to have two versions in the tree
skip = []
skip-tree = []
[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
allow-git = []