Skip to content

Commit 2ce6b51

Browse files
Refine cargo-deny rules (#8602)
A few `cargo-deny` tweaks with @macladson Co-authored-by: Mac L <mjladson@pm.me> Co-Authored-By: Michael Sproul <michael@sigmaprime.io> Co-Authored-By: Mac L <mjladson@pm.me>
1 parent 4e35e9d commit 2ce6b51

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ install-deny:
333333
cargo install --force cargo-deny --version 0.18.2
334334

335335
deny-CI:
336-
cargo deny check bans sources --hide-inclusion-graph
336+
cargo deny check bans sources
337337

338338
# Runs `cargo vendor` to make sure dependencies can be vendored for packaging, reproducibility and archival purpose.
339339
vendor:

deny.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
# See https://embarkstudios.github.io/cargo-deny/
33

44
[bans]
5-
# Warn when multiple versions of the same crate are detected
6-
multiple-versions = "warn"
5+
# Allow multiple versions by default. Change this to "warn" to see all multiple versions.
6+
multiple-versions = "allow"
77
deny = [
8-
# Legacy Ethereum crates that have been replaced with alloy
9-
{ crate = "ethers", reason = "use alloy instead" },
10-
{ crate = "ethereum-types", reason = "use alloy-primitives instead" },
11-
# Replaced by quick-protobuf
8+
{ crate = "ethers", reason = "legacy Ethereum crate, use alloy instead" },
9+
{ crate = "ethereum-types", reason = "legacy Ethereum crate, use alloy-primitives instead" },
1210
{ crate = "protobuf", reason = "use quick-protobuf instead" },
13-
# Prevent duplicate versions of reqwest - heavy crate with build scripts
14-
{ crate = "reqwest", deny-multiple-versions = true, reason = "prevent duplicate versions" },
11+
{ crate = "derivative", reason = "use educe or derive_more instead" },
12+
{ crate = "ark-ff", reason = "present in Cargo.lock but not needed by Lighthouse" },
13+
{ crate = "strum", deny-multiple-versions = true, reason = "takes a long time to compile" },
14+
{ crate = "reqwest", deny-multiple-versions = true, reason = "takes a long time to compile" }
1515
]
1616

1717
[sources]

0 commit comments

Comments
 (0)