-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeny.toml
More file actions
65 lines (55 loc) · 1.39 KB
/
deny.toml
File metadata and controls
65 lines (55 loc) · 1.39 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
# SPDX-License-Identifier: PMPL-1.0-or-later
# cargo-deny configuration for RSR-compliant repositories
# Run: cargo deny check
# Docs: https://embarkstudios.github.io/cargo-deny/
[graph]
targets = []
all-features = true
# --- Advisory database ---------------------------------------------------
[advisories]
db-path = "~/.cargo/advisory-db"
db-urls = ["https://github.com/rustsec/advisory-db"]
# Fail on any known vulnerability
vulnerability = "deny"
unmaintained = "warn"
yanked = "warn"
notice = "warn"
# --- License policy -------------------------------------------------------
[licenses]
unlicensed = "deny"
confidence-threshold = 0.8
allow = [
"PMPL-1.0-or-later",
"MPL-2.0",
"MIT",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"Zlib",
"Unicode-3.0",
"Unicode-DFS-2016",
]
deny = [
"AGPL-3.0-only",
"AGPL-3.0-or-later",
]
copyleft = "warn"
[[licenses.exceptions]]
allow = ["OpenSSL"]
name = "ring"
# --- Crate bans ------------------------------------------------------------
[bans]
multiple-versions = "warn"
wildcards = "allow"
highlight = "all"
deny = [
# Known-bad crates
{ name = "openssl", wrappers = ["openssl-sys"] },
]
# --- Source restrictions ----------------------------------------------------
[sources]
unknown-registry = "deny"
unknown-git = "warn"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
allow-git = []