2021-11-01 14:19:22 -07:00
|
|
|
# Note that all fields that take a lint level have these possible values:
|
|
|
|
# * deny - An error will be produced and the check will fail
|
|
|
|
# * warn - A warning will be produced, but the check will not fail
|
|
|
|
# * allow - No warning or error will be produced, though in some cases a note
|
|
|
|
# will be
|
|
|
|
|
|
|
|
# This section is considered when running `cargo deny check bans`.
|
|
|
|
# More documentation about the 'bans' section can be found here:
|
|
|
|
# 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 = "deny"
|
2023-06-25 22:44:19 -07:00
|
|
|
|
|
|
|
# Don't allow wildcard ("any version") dependencies
|
2024-08-12 06:21:57 -07:00
|
|
|
# TODO: Change to `deny` after we upgrade to crates.io version of the ECC dependencies (#8749).
|
|
|
|
wildcards = "allow"
|
2023-06-25 22:44:19 -07:00
|
|
|
# Allow private and dev wildcard dependencies.
|
|
|
|
# Switch this to `false` when #6924 is implemented.
|
|
|
|
allow-wildcard-paths = true
|
|
|
|
|
2021-11-01 14:19:22 -07:00
|
|
|
# The graph highlighting used when creating dotgraphs for crates
|
|
|
|
# with multiple versions
|
|
|
|
# * lowest-version - The path to the lowest versioned duplicate is highlighted
|
|
|
|
# * simplest-path - The path to the version with the fewest edges is highlighted
|
|
|
|
# * all - Both lowest-version and simplest-path are used
|
|
|
|
highlight = "all"
|
|
|
|
|
|
|
|
# List of crates that are allowed. Use with care!
|
2022-09-14 12:52:32 -07:00
|
|
|
#allow = [
|
|
|
|
#]
|
2021-11-01 14:19:22 -07:00
|
|
|
|
2023-06-25 22:44:19 -07:00
|
|
|
# List of crates that can never become Zebra dependencies.
|
|
|
|
deny = [
|
|
|
|
# Often has memory safety vulnerabilities.
|
|
|
|
# Enabled by --all-features, use the `cargo hack` script in the deny.toml CI job instead.
|
|
|
|
{ name = "openssl" },
|
|
|
|
{ name = "openssl-sys" },
|
|
|
|
]
|
|
|
|
|
2022-09-14 12:52:32 -07:00
|
|
|
# We only use this for some `librustzcash` and `orchard` crates.
|
|
|
|
# If we add a crate here, duplicate dependencies of that crate are still shown.
|
|
|
|
#
|
2021-11-01 14:19:22 -07:00
|
|
|
# Certain crates/versions that will be skipped when doing duplicate detection.
|
|
|
|
skip = [
|
|
|
|
]
|
2022-09-14 12:52:32 -07:00
|
|
|
|
2021-11-01 14:19:22 -07:00
|
|
|
# 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 = [
|
2022-05-31 20:53:51 -07:00
|
|
|
# wait for ordered-map to release a dependency fix
|
2022-01-13 14:43:42 -08:00
|
|
|
{ name = "ordered-map", version = "=0.4.2" },
|
2021-12-03 10:09:43 -08:00
|
|
|
|
2022-09-14 12:52:32 -07:00
|
|
|
# wait for primitive-types to upgrade
|
|
|
|
{ name = "proc-macro-crate", version = "=0.1.5" },
|
|
|
|
|
2024-01-01 17:26:54 -08:00
|
|
|
# wait for `color-eyre` to upgrade
|
|
|
|
{ name = "owo-colors", version = "=3.5.0" },
|
|
|
|
|
2023-05-10 01:30:41 -07:00
|
|
|
# wait for structopt upgrade (or upgrade to clap 4)
|
2022-10-31 07:15:11 -07:00
|
|
|
{ name = "clap", version = "=2.34.0" },
|
2022-09-14 12:52:32 -07:00
|
|
|
|
2023-11-26 19:26:29 -08:00
|
|
|
# wait for abscissa_core to upgrade
|
|
|
|
{name = "tracing-log", version = "=0.1.4" },
|
|
|
|
|
2022-05-31 20:53:51 -07:00
|
|
|
# wait for tokio-test -> tokio-stream to upgrade
|
2023-03-26 16:53:17 -07:00
|
|
|
{ name = "tokio-util", version = "=0.6.10" },
|
2022-03-06 18:07:25 -08:00
|
|
|
|
2023-01-22 20:49:13 -08:00
|
|
|
# wait for console-subscriber and tower to update hdrhistogram.
|
|
|
|
# also wait for ron to update insta, and wait for tonic update.
|
2023-03-26 16:53:17 -07:00
|
|
|
{ name = "base64", version = "=0.13.1" },
|
2023-04-13 21:36:38 -07:00
|
|
|
|
2023-03-21 05:50:47 -07:00
|
|
|
# wait for elasticsearch to update base64, darling, rustc_version, serde_with
|
|
|
|
{ name = "elasticsearch", version = "=8.5.0-alpha.1" },
|
2024-07-23 08:44:31 -07:00
|
|
|
|
|
|
|
# wait for reqwest to update base64
|
|
|
|
{ name = "base64", version = "=0.21.7" },
|
|
|
|
{ name = "sync_wrapper", version = "0.1.2" },
|
|
|
|
|
|
|
|
# wait for jsonrpc-http-server to update hyper or for Zebra to replace jsonrpc (#8682)
|
|
|
|
{ name = "h2", version = "=0.3.26" },
|
|
|
|
{ name = "http", version = "=0.2.12" },
|
|
|
|
{ name = "http-body", version = "=0.4.6" },
|
2024-10-25 12:36:17 -07:00
|
|
|
{ name = "hyper", version = "=0.14.31" },
|
|
|
|
{ name = "hyper-rustls", version = "=0.24.2" },
|
|
|
|
|
|
|
|
{ name = "reqwest", version = "=0.11.27" },
|
|
|
|
{ name = "rustls", version = "=0.21.12" },
|
|
|
|
{ name = "rustls-pemfile", version = "=1.0.4" },
|
|
|
|
{ name = "rustls-webpki", version = "=0.101.7" },
|
|
|
|
{ name = "tokio-rustls", version = "=0.24.1" },
|
|
|
|
{ name = "webpki-roots", version = "=0.25.4" },
|
2024-08-12 06:21:57 -07:00
|
|
|
|
2024-08-23 17:55:57 -07:00
|
|
|
# wait for structopt-derive to update heck
|
|
|
|
{ name = "heck", version = "=0.3.3" },
|
|
|
|
|
|
|
|
# wait for librocksdb-sys to update bindgen to one that uses newer itertools
|
2024-10-10 10:09:04 -07:00
|
|
|
{ name = "itertools", version = "=0.12.1" },
|
2024-10-25 12:36:17 -07:00
|
|
|
{ name = "bindgen", version = "=0.69.5" },
|
2024-10-10 10:09:04 -07:00
|
|
|
|
|
|
|
# wait for halo2_gadgets and primitive-types to update uint
|
|
|
|
{ name = "uint", version = "=0.9.5" },
|
|
|
|
|
|
|
|
# wait for dirs-sys to update windows-sys
|
|
|
|
{ name = "windows-sys", version = "=0.48.0" },
|
|
|
|
|
2024-10-25 10:33:11 -07:00
|
|
|
# wait for zebra to update tower
|
2024-10-25 12:36:17 -07:00
|
|
|
{ name = "tower", version = "=0.4.13" },
|
2024-12-06 20:27:09 -08:00
|
|
|
{ name = "hashbrown", version = "=0.14.5" },
|
|
|
|
|
|
|
|
# wait for zebra to update vergen
|
|
|
|
{ name = "thiserror", version = "=1.0.69" },
|
|
|
|
{ name = "thiserror-impl", version = "=1.0.69" },
|
2024-10-25 10:33:11 -07:00
|
|
|
|
2024-10-10 10:09:04 -07:00
|
|
|
# Remove after release candicate period is over and the ECC crates are not patched anymore
|
|
|
|
{ name = "equihash", version = "=0.2.0" },
|
|
|
|
{ name = "f4jumble", version = "=0.1.0" },
|
|
|
|
{ name = "incrementalmerkletree", version = "=0.6.0" },
|
|
|
|
{ name = "zcash_address", version = "=0.4.0" },
|
|
|
|
{ name = "zcash_keys", version = "=0.3.0" },
|
|
|
|
{ name = "zcash_primitives", version = "=0.16.0" },
|
|
|
|
{ name = "zcash_protocol", version = "=0.2.0" }
|
2021-11-01 14:19:22 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
# This section is considered when running `cargo deny check sources`.
|
|
|
|
# More documentation about the 'sources' section can be found here:
|
|
|
|
# https://embarkstudios.github.io/cargo-deny/checks/sources/cfg.html
|
|
|
|
[sources]
|
|
|
|
# Lint level for what to happen when a crate from a crate registry that is not
|
|
|
|
# in the allow list is encountered
|
|
|
|
unknown-registry = "deny"
|
|
|
|
# Lint level for what to happen when a crate from a git repository that is not
|
|
|
|
# in the allow list is encountered
|
|
|
|
unknown-git = "deny"
|
|
|
|
# List of URLs for allowed crate registries. Defaults to the crates.io index
|
|
|
|
# if not specified. If it is specified but empty, no registries are allowed.
|
|
|
|
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
|
|
|
|
# List of URLs for allowed Git repositories
|
|
|
|
allow-git = [
|
2024-10-10 10:09:04 -07:00
|
|
|
"https://github.com/zcash/librustzcash.git",
|
|
|
|
"https://github.com/zcash/incrementalmerkletree",
|
|
|
|
"https://github.com/zcash/orchard",
|
|
|
|
"https://github.com/zcash/sapling-crypto"
|
2021-11-01 14:19:22 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
[sources.allow-org]
|
|
|
|
github = [
|
|
|
|
]
|