-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdeny.toml
More file actions
83 lines (77 loc) · 2.55 KB
/
deny.toml
File metadata and controls
83 lines (77 loc) · 2.55 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
81
82
83
# Cargo deny configuration
# Targets to check
targets = [
{ triple = "x86_64-unknown-linux-gnu" },
{ triple = "x86_64-apple-darwin" },
{ triple = "x86_64-pc-windows-msvc" },
{ triple = "aarch64-unknown-linux-gnu" },
{ triple = "aarch64-apple-darwin" },
]
# This section is considered when running `cargo deny check licenses`
[licenses]
# The lint level for crates which do not have a detectable license
unlicensed = "deny"
# List of explicitly allowed licenses
allow = [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"Unicode-DFS-2016",
"MPL-2.0",
"OpenSSL",
]
# List of explicitly denied licenses
deny = [
"GPL-2.0",
"GPL-3.0",
]
# The confidence threshold for detecting a license from license text
confidence_threshold = 0.8
[licenses.private]
# If true, ignores workspace crates that aren't published
ignore = true
# This section is considered when running `cargo deny check bans`
[bans]
# Lint level for when multiple versions of the same crate are detected
multiple_versions = "warn"
# Lint level for when a crate marked as 'wildcards' is encountered
wildcards = "allow"
# The graph highlighting used when creating dotgraphs for crates
highlight = "all"
# List of crates to deny
deny = []
# List of crates to skip (for known duplicates)
skip = []
# List of crates to skip recursively
skip-tree = []
# This section is considered when running `cargo deny check advisories`
[advisories]
# The path where the advisory databases are cloned/fetched into
db-path = "~/.cargo/advisory-dbs"
# 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 = []
# Threshold for security vulnerabilities
severity_threshold = "low"
# This section is considered when running `cargo deny check sources`
[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 allowed crate registries
allow_registry = ["https://github.com/rust-lang/crates.io-index"]
# List of allowed Git repositories
allow_git = []