Skip to content

Commit 0c2d2af

Browse files
roypatzulinx86
authored andcommitted
fix: use version = 2 in deny.toml
New versions of `cargo deny` default all warnings to deny by default, and removed the possibility to configure them (e.g. the `unlicensed` and `copyleft` options are removed, with the default behavior now being as if they had been set to `deny` before). We opt-in to this new behavior by setting `version = 2` and removing the now unsupported configuration options, to avoid a warning from being printed (which would cause our `test_licences` test to fail). Signed-off-by: Patrick Roy <[email protected]>
1 parent 109f4a2 commit 0c2d2af

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

deny.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[licenses]
2+
version = 2
23
allow = [
34
"MIT",
45
"Apache-2.0",
@@ -8,12 +9,6 @@ allow = [
89
"OpenSSL"
910
]
1011

11-
# Lint level for licenses considered copyleft
12-
copyleft = "deny"
13-
14-
# The lint level for crates which do not have a detectable license
15-
unlicensed = "deny"
16-
1712
[[bans.deny]]
1813
name = "serde_derive"
1914
version = ">1.0.171, < 1.0.184"

0 commit comments

Comments
 (0)