-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdeny.toml
More file actions
65 lines (60 loc) · 2.02 KB
/
Copy pathdeny.toml
File metadata and controls
65 lines (60 loc) · 2.02 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
# cargo-deny configuration
# https://embarkstudios.github.io/cargo-deny/
[graph]
targets = []
all-features = true
# ------------------------------------------------------------------------------
# Advisories: check for known security vulnerabilities and unmaintained crates
# ------------------------------------------------------------------------------
[advisories]
db-path = "~/.cargo/advisory-db"
db-urls = ["https://github.com/rustsec/advisory-db"]
ignore = [
# term_size is transitive via tokei; no patched version available upstream
{ id = "RUSTSEC-2020-0163", reason = "transitive via tokei; revisit when upstream removes it" },
]
yanked = "warn"
# ------------------------------------------------------------------------------
# Licenses: only allow permissive open-source licenses
# ------------------------------------------------------------------------------
[licenses]
confidence-threshold = 0.8
# Allow common permissive licenses (default-deny for unlisted)
allow = [
"MIT",
"MIT-0",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"BSL-1.0",
"ISC",
"Zlib",
"CC0-1.0",
"Unlicense",
"MPL-2.0",
"NCSA",
"Unicode-3.0",
]
# ------------------------------------------------------------------------------
# Bans: control which crates are allowed or denied
# ------------------------------------------------------------------------------
[bans]
# Warn on multiple versions of the same crate (skip strict check for now)
multiple-versions = "warn"
wildcards = "allow"
highlight = "all"
workspace-default-features = "allow"
external-default-features = "allow"
allow = []
deny = []
skip = []
skip-tree = []
# ------------------------------------------------------------------------------
# Sources: control where crates can be fetched from
# ------------------------------------------------------------------------------
[sources]
unknown-registry = "warn"
unknown-git = "warn"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
allow-git = []