Skip to content

Commit

Permalink
cargo deny multiple crate versions
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Dec 6, 2022
1 parent 37c62f6 commit 30fa08e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ registries = [
# https://embarkstudios.github.io/cargo-deny/checks/bans/cfg.html
[bans]
# Lint level for when multiple versions of the same crate are detected
multiple-versions = "warn"
multiple-versions = "deny"
# Lint level for when a crate version requirement is `*`
wildcards = "allow"
# The graph highlighting used when creating dotgraphs for crates
Expand All @@ -173,13 +173,19 @@ deny = [
# Certain crates/versions that will be skipped when doing duplicate detection.
skip = [
#{ name = "ansi_term", version = "=0.11.0" },

# from uniffi-bindgen
{ name = "goblin", version = "0.5.4" },
# from console
{ name = "terminal_size", version = "0.1.7" },
]
# Similarly to `skip` allows you to skip certain crates during duplicate
# detection. Unlike skip, it also includes the entire tree of transitive
# dependencies starting at the specified crate, up to a certain depth, which is
# by default infinite
skip-tree = [
#{ name = "ansi_term", version = "=0.11.0", depth = 20 },
{ name = "clap", version = "3.2.23" }
]

# This section is considered when running `cargo deny check sources`.
Expand Down

0 comments on commit 30fa08e

Please sign in to comment.