-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeny.toml
More file actions
68 lines (60 loc) · 2.14 KB
/
Copy pathdeny.toml
File metadata and controls
68 lines (60 loc) · 2.14 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
# cargo-deny configuration
# Docs: https://embarkstudios.github.io/cargo-deny/
# Schema: cargo-deny 0.16+ (v2 action)
#
# Policy summary:
# advisories - deny vulnerabilities; warn on unmaintained/unsound for all deps
# licenses - warn on unapproved licenses (not fail, to avoid blocking on new transitive deps)
# bans - warn on duplicate major versions
# sources - crates.io only (no git deps in production crates)
[advisories]
# vulnerability is always an error in cargo-deny v2 (no config needed).
# "all" - report for all dependencies (direct + transitive)
# "workspace" - only report for workspace members
# "transitive" - only report for transitive deps
# "none" - suppress entirely
unmaintained = "all"
unsound = "all"
yanked = "warn"
# Add reviewed advisory IDs here to suppress specific known false-positives:
# ignore = ["RUSTSEC-2021-0001"]
[licenses]
# cargo-deny 0.16+: only `allow` list is supported (no default/unlicensed/copyleft fields).
# Any crate whose license is not in this list will be an error.
# Add licenses to this list as needed when new transitive deps are introduced.
allow = [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-1-Clause",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"Unicode-DFS-2016",
"Unicode-3.0",
"CC0-1.0",
"Zlib",
"OpenSSL",
"0BSD",
"BSL-1.0",
"CDLA-Permissive-2.0",
"Unlicense",
"MPL-2.0",
# r-efi: "MIT OR Apache-2.0 OR LGPL-2.1-or-later" - MIT/Apache-2.0 are preferred;
# LGPL listed here so cargo-deny can resolve the OR expression.
"LGPL-2.1-or-later",
]
# Per-crate exceptions for licenses not in the allow list above.
# LGPL crates must be listed explicitly to prevent accidental static linking.
exceptions = [
# ring / other crypto crates may carry ISC AND MIT AND OpenSSL combined expressions.
]
[bans]
# Warn on multiple major versions of the same crate (common in transitive deps).
multiple-versions = "warn"
wildcards = "allow"
[sources]
# Only allow crates from crates.io in production.
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]