Skip to content

Commit b1d94c2

Browse files
authored
chore: update deny.toml
Pull-Request: #5454.
1 parent 8f42576 commit b1d94c2

File tree

1 file changed

+11
-31
lines changed

1 file changed

+11
-31
lines changed

deny.toml

Lines changed: 11 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,14 @@
22
# More documentation for the advisories section can be found here:
33
# https://embarkstudios.github.io/cargo-deny/checks/advisories/cfg.html
44
[advisories]
5+
# Version of the advisory config. See https://github.com/EmbarkStudios/cargo-deny/pull/611
6+
version = 2
57
# The path where the advisory database is cloned/fetched into
68
db-path = "~/cargo/advisory-db"
79
# The url of the advisory database to use
8-
db-urls = [ "https://github.com/rustsec/advisory-db" ]
9-
# The lint level for security vulnerabilities
10-
vulnerability = "deny"
11-
# The lint level for unmaintained crates
12-
unmaintained = "warn"
10+
db-urls = ["https://github.com/rustsec/advisory-db"]
1311
# The lint level for crates that have been yanked from their source registry
1412
yanked = "warn"
15-
# The lint level for crates with security notices. Note that as of
16-
# 2019-12-17 there are no security notice advisories in
17-
# https://github.com/rustsec/advisory-db
18-
notice = "warn"
1913
# A list of advisory IDs to ignore. Note that ignored advisories will still
2014
# output a note when they are encountered.
2115
ignore = [
@@ -35,35 +29,21 @@ ignore = [
3529
# More documentation for the licenses section can be found here:
3630
# https://embarkstudios.github.io/cargo-deny/checks/licenses/cfg.html
3731
[licenses]
38-
# The lint level for crates which do not have a detectable license
39-
unlicensed = "deny"
32+
# Version of the license config. See https://github.com/EmbarkStudios/cargo-deny/pull/611
33+
version = 2
4034
# List of explicitly allowed licenses
4135
# See https://spdx.org/licenses/ for list of possible licenses
42-
# [possible values: any SPDX 3.7 short identifier (+ optional exception)].
36+
# [possible values: any SPDX 3.11 short identifier (+ optional exception)].
4337
allow = [
38+
"Apache-2.0 WITH LLVM-exception",
4439
"Apache-2.0",
4540
"BSD-2-Clause",
41+
"BSD-3-Clause",
42+
"ISC",
4643
"MIT",
44+
"MPL-2.0",
4745
"Unlicense",
4846
]
49-
# List of explicitly disallowed licenses
50-
# See https://spdx.org/licenses/ for list of possible licenses
51-
# [possible values: any SPDX 3.7 short identifier (+ optional exception)].
52-
deny = []
53-
# Lint level for licenses considered copyleft
54-
copyleft = "allow"
55-
# Blanket approval or denial for OSI-approved or FSF Free/Libre licenses
56-
# * both - The license will be approved if it is both OSI-approved *AND* FSF
57-
# * either - The license will be approved if it is either OSI-approved *OR* FSF
58-
# * osi-only - The license will be approved if is OSI-approved *AND NOT* FSF
59-
# * fsf-only - The license will be approved if is FSF *AND NOT* OSI-approved
60-
# * neither - This predicate is ignored and the default lint level is used
61-
allow-osi-fsf-free = "both"
62-
# Lint level used when no other predicates are matched
63-
# 1. License isn't in the allow or deny lists
64-
# 2. License isn't copyleft
65-
# 3. License isn't OSI/FSF, or allow-osi-fsf-free = "neither"
66-
default = "deny"
6747
# The confidence threshold for detecting a license from license text.
6848
# The higher the value, the more closely the license text must be to the
6949
# canonical license text of a valid SPDX license file.
@@ -76,7 +56,7 @@ exceptions = [
7656
# https://www.openssl.org/blog/blog/2017/03/22/license/
7757
# ring crate is ISC & MIT
7858
{ allow = ["ISC", "MIT", "OpenSSL"], name = "ring" },
79-
# libp2p is not re-distributing unicode tables data by itself
59+
# libp2p is not re-distributing unicode tables data by itself
8060
{ allow = ["MIT", "Apache-2.0", "Unicode-DFS-2016"], name = "unicode-ident" },
8161
]
8262

0 commit comments

Comments
 (0)