2
2
# More documentation for the advisories section can be found here:
3
3
# https://embarkstudios.github.io/cargo-deny/checks/advisories/cfg.html
4
4
[advisories ]
5
+ # Version of the advisory config. See https://github.com/EmbarkStudios/cargo-deny/pull/611
6
+ version = 2
5
7
# The path where the advisory database is cloned/fetched into
6
8
db-path = " ~/cargo/advisory-db"
7
9
# 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" ]
13
11
# The lint level for crates that have been yanked from their source registry
14
12
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"
19
13
# A list of advisory IDs to ignore. Note that ignored advisories will still
20
14
# output a note when they are encountered.
21
15
ignore = [
@@ -35,35 +29,21 @@ ignore = [
35
29
# More documentation for the licenses section can be found here:
36
30
# https://embarkstudios.github.io/cargo-deny/checks/licenses/cfg.html
37
31
[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
40
34
# List of explicitly allowed licenses
41
35
# 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)].
43
37
allow = [
38
+ " Apache-2.0 WITH LLVM-exception" ,
44
39
" Apache-2.0" ,
45
40
" BSD-2-Clause" ,
41
+ " BSD-3-Clause" ,
42
+ " ISC" ,
46
43
" MIT" ,
44
+ " MPL-2.0" ,
47
45
" Unlicense" ,
48
46
]
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"
67
47
# The confidence threshold for detecting a license from license text.
68
48
# The higher the value, the more closely the license text must be to the
69
49
# canonical license text of a valid SPDX license file.
@@ -76,7 +56,7 @@ exceptions = [
76
56
# https://www.openssl.org/blog/blog/2017/03/22/license/
77
57
# ring crate is ISC & MIT
78
58
{ 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
80
60
{ allow = [" MIT" , " Apache-2.0" , " Unicode-DFS-2016" ], name = " unicode-ident" },
81
61
]
82
62
0 commit comments