Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo deny multiple crate versions #1336

Merged
merged 1 commit into from
Dec 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 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,26 @@ 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" },
# from secret-service
{ name = "block-buffer", version = "0.9.0" },
{ name = "digest", version = "0.9.0" },
{ name = "memoffset", version = "0.6.5" },
{ name = "proc-macro-crate", version = "0.1.5" },
{ name = "sha2", version = "0.9.9" },
]
# 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" },
{ name = "windows-sys", version = "0.36.1" },
]

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