mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-06 10:11:44 +00:00
Closes: - https://github.com/sigp/lighthouse/issues/8408 Add `cargo deny` on CI with deprecated crates (`ethers` and `ethereum-types`) banned and duplicates banned for `reqwest`. Co-Authored-By: Michael Sproul <michael@sigmaprime.io>
24 lines
831 B
TOML
24 lines
831 B
TOML
# cargo-deny configuration for Lighthouse
|
|
# See https://embarkstudios.github.io/cargo-deny/
|
|
|
|
[bans]
|
|
# Warn when multiple versions of the same crate are detected
|
|
multiple-versions = "warn"
|
|
deny = [
|
|
# Legacy Ethereum crates that have been replaced with alloy
|
|
{ crate = "ethers", reason = "use alloy instead" },
|
|
{ crate = "ethereum-types", reason = "use alloy-primitives instead" },
|
|
# Replaced by quick-protobuf
|
|
{ crate = "protobuf", reason = "use quick-protobuf instead" },
|
|
# Prevent duplicate versions of reqwest - heavy crate with build scripts
|
|
{ crate = "reqwest", deny-multiple-versions = true, reason = "prevent duplicate versions" },
|
|
]
|
|
|
|
[sources]
|
|
unknown-registry = "deny"
|
|
unknown-git = "warn"
|
|
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
|
|
|
|
[sources.allow-org]
|
|
github = ["sigp"]
|