Skip to content

Commit e17c568

Browse files
committed
Update cargo-deny configuration
Removes template comments and explicitly allows MPL 2.0.
1 parent 9750e92 commit e17c568

File tree

1 file changed

+5
-32
lines changed

1 file changed

+5
-32
lines changed

deny.toml

+5-32
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,14 @@
1-
# This section is considered when running `cargo deny check licenses`
2-
# More documentation for the licenses section can be found here:
3-
# https://embarkstudios.github.io/cargo-deny/checks/licenses/cfg.html
41
[licenses]
5-
# The lint level for crates which do not have a detectable license
2+
copyleft = "warn"
3+
allow-osi-fsf-free = "neither"
4+
default = "deny"
65
unlicensed = "deny"
7-
# List of explicitly allowed licenses
8-
# See https://spdx.org/licenses/ for list of possible licenses
9-
# [possible values: any SPDX 3.11 short identifier (+ optional exception)].
6+
confidence-threshold = 0.8
107
allow = [
118
"WTFPL",
129
"MIT",
10+
"MPL-2.0",
1311
"Apache-2.0",
1412
"BSD-3-Clause",
1513
"Unicode-DFS-2016",
1614
]
17-
# List of explicitly disallowed licenses
18-
# See https://spdx.org/licenses/ for list of possible licenses
19-
# [possible values: any SPDX 3.11 short identifier (+ optional exception)].
20-
deny = [
21-
#"Nokia",
22-
]
23-
# Lint level for licenses considered copyleft
24-
copyleft = "warn"
25-
# Blanket approval or denial for OSI-approved or FSF Free/Libre licenses
26-
# * both - The license will be approved if it is both OSI-approved *AND* FSF
27-
# * either - The license will be approved if it is either OSI-approved *OR* FSF
28-
# * osi-only - The license will be approved if is OSI-approved *AND NOT* FSF
29-
# * fsf-only - The license will be approved if is FSF *AND NOT* OSI-approved
30-
# * neither - This predicate is ignored and the default lint level is used
31-
allow-osi-fsf-free = "neither"
32-
# Lint level used when no other predicates are matched
33-
# 1. License isn't in the allow or deny lists
34-
# 2. License isn't copyleft
35-
# 3. License isn't OSI/FSF, or allow-osi-fsf-free = "neither"
36-
default = "deny"
37-
# The confidence threshold for detecting a license from license text.
38-
# The higher the value, the more closely the license text must be to the
39-
# canonical license text of a valid SPDX license file.
40-
# [possible values: any between 0.0 and 1.0].
41-
confidence-threshold = 0.8

0 commit comments

Comments
 (0)