Skip to content

Commit 63ea354

Browse files
committed
Add cargo-deny config
1 parent 33f0b71 commit 63ea354

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

deny.toml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
[advisories]
2+
ignore = [
3+
# tokio 0.2 and 0.3 are both perma-vulnerable to these two advisories,
4+
# will be removed once support for them is dropped
5+
"RUSTSEC-2021-0072",
6+
"RUSTSEC-2021-0124",
7+
]
8+
9+
[licenses]
10+
unlicensed = "deny"
11+
allow = [
12+
"MIT",
13+
"Apache-2.0",
14+
"BSD-3-Clause",
15+
]
16+
default = "deny"
17+
18+
[bans]
19+
multiple-versions = "warn"
20+
skip = [
21+
# Used in the stream migration docs
22+
{ name = "tokio-util", version = "0.3" },
23+
{ name = "tokio-util", version = "0.4" },
24+
{ name = "tokio-util", version = "0.5" },
25+
{ name = "tokio-util", version = "0.6" },
26+
]
27+
skip-tree = [
28+
{ name = "tokio", version = "0.2" },
29+
{ name = "tokio", version = "0.3" },
30+
{ name = "proptest", version = "1.0" },
31+
{ name = "proptest-derive", version = "0.3" },
32+
]

0 commit comments

Comments
 (0)