Skip to content

Commit 3df836e

Browse files
nazar-pcFirestar99
authored andcommitted
Allow multiple versions of the same crate, writing exceptions is counter-productive
1 parent beab6cf commit 3df836e

File tree

1 file changed

+2
-37
lines changed

1 file changed

+2
-37
lines changed

deny.toml

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ignore = [
1515
# https://embarkstudios.github.io/cargo-deny/checks/bans/cfg.html
1616
[bans]
1717
# Lint level for when multiple versions of the same crate are detected
18-
multiple-versions = "deny"
18+
multiple-versions = "allow"
1919
# Lint level for when a crate version requirement is `*`
2020
wildcards = "allow"
2121
highlight = "all"
@@ -25,41 +25,6 @@ deny = [
2525
# not specified, all versions will be matched.
2626
#{ name = "ansi_term", version = "=0.11.0" },
2727
]
28-
# Certain crates/versions that will be skipped when doing duplicate detection.
29-
skip = [
30-
#{ name = "ansi_term", version = "=0.11.0" },
31-
32-
# HACK(eddyb) two versions coexist for interop, for the time being.
33-
{ name = "raw-window-handle", version = "=0.5.2" },
34-
{ name = "raw-window-handle", version = "=0.6.2" },
35-
36-
# HACK(eddyb) the newer version hasn't propagated through the ecosystem yet.
37-
{ name = "hashbrown", version = "=0.14.5" },
38-
{ name = "hashbrown", version = "=0.15.2" },
39-
40-
# HACK(eddyb) the newer version hasn't propagated through the ecosystem yet.
41-
{ name = "ndk-sys", version = "=0.5.0+25.2.9519653" },
42-
{ name = "ndk-sys", version = "=0.6.0+11769913" },
43-
]
44-
# Similarly to `skip` allows you to skip certain crates during duplicate
45-
# detection. Unlike skip, it also includes the entire tree of transitive
46-
# dependencies starting at the specified crate, up to a certain depth, which is
47-
# by default infinite
48-
skip-tree = [
49-
# HACK(eddyb) `jni` (an `android-activity` dep) uses older `windows-*`.
50-
{ name = "jni", version = "=0.21.1", depth = 7 },
51-
# HACK(eddyb) `plist` (an `ash-molten` build dep) uses older `quick-xml`.
52-
{ name = "plist", version = "=1.7.0", depth = 2 },
53-
# HACK(eddyb) `minifb` (an `example-runner-cpu` dep) uses older `wayland-*`.
54-
{ name = "minifb", version = "=0.25.0", depth = 3 },
55-
# HACK(eddyb) `num_cpus` (a `tester` dep) uses older `hermit-abi`.
56-
{ name = "num_cpus", version = "=1.16.0", depth = 2 },
57-
# HACK(LegNeato) `tracing-tree` uses newer dependencies of `tracing`.
58-
{ name = "tracing-tree", version = "=0.3.1" },
59-
# HACK(LegNeato) `thorin` has not yet released the version that bumps this.
60-
{ name = "gimli", version = "=0.30.0" },
61-
]
62-
6328

6429

6530

@@ -85,7 +50,7 @@ exceptions = [
8550
# CC0 is a permissive license but somewhat unclear status for source code
8651
# so we prefer to not have dependencies using it
8752
# https://tldrlegal.com/license/creative-commons-cc0-1.0-universal
88-
{ allow = ["CC0-1.0"], name = "notify", version = "7.0.0" },
53+
{ allow = ["CC0-1.0"], name = "notify" },
8954
{ allow = ["CC0-1.0"], name = "hexf-parse" },
9055
]
9156

0 commit comments

Comments
 (0)