mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 01:05:47 +00:00
Feature gate arbitrary crate in the consensus types crate (#7743)
Which issue # does this PR address? Puts the `arbitrary` crate behind a feature flag in the `types` crate.
This commit is contained in:
@@ -9,18 +9,22 @@ default = ["sqlite", "legacy-arith"]
|
||||
# Allow saturating arithmetic on slots and epochs. Enabled by default, but deprecated.
|
||||
legacy-arith = []
|
||||
sqlite = ["dep:rusqlite"]
|
||||
# The `arbitrary-fuzz` feature is a no-op provided for backwards compatibility.
|
||||
# For simplicity `Arbitrary` is now derived regardless of the feature's presence.
|
||||
arbitrary-fuzz = []
|
||||
arbitrary = [
|
||||
"dep:arbitrary",
|
||||
"bls/arbitrary",
|
||||
"ethereum_ssz/arbitrary",
|
||||
"milhouse/arbitrary",
|
||||
"ssz_types/arbitrary",
|
||||
"swap_or_not_shuffle/arbitrary",
|
||||
]
|
||||
arbitrary-fuzz = ["arbitrary"]
|
||||
portable = ["bls/supranational-portable"]
|
||||
|
||||
[dependencies]
|
||||
alloy-primitives = { workspace = true }
|
||||
alloy-rlp = { version = "0.3.4", features = ["derive"] }
|
||||
# The arbitrary dependency is enabled by default since Capella to avoid complexity introduced by
|
||||
# `AbstractExecPayload`
|
||||
arbitrary = { workspace = true, features = ["derive"] }
|
||||
bls = { workspace = true, features = ["arbitrary"] }
|
||||
arbitrary = { workspace = true, features = ["derive"], optional = true }
|
||||
bls = { workspace = true }
|
||||
compare_fields = { workspace = true }
|
||||
compare_fields_derive = { workspace = true }
|
||||
context_deserialize = { workspace = true }
|
||||
@@ -29,7 +33,7 @@ derivative = { workspace = true }
|
||||
eth2_interop_keypairs = { path = "../../common/eth2_interop_keypairs" }
|
||||
ethereum_hashing = { workspace = true }
|
||||
ethereum_serde_utils = { workspace = true }
|
||||
ethereum_ssz = { workspace = true, features = ["arbitrary"] }
|
||||
ethereum_ssz = { workspace = true }
|
||||
ethereum_ssz_derive = { workspace = true }
|
||||
fixed_bytes = { workspace = true }
|
||||
hex = { workspace = true }
|
||||
@@ -52,9 +56,9 @@ serde = { workspace = true, features = ["rc"] }
|
||||
serde_json = { workspace = true }
|
||||
serde_yaml = { workspace = true }
|
||||
smallvec = { workspace = true }
|
||||
ssz_types = { workspace = true, features = ["arbitrary"] }
|
||||
ssz_types = { workspace = true }
|
||||
superstruct = { workspace = true }
|
||||
swap_or_not_shuffle = { workspace = true, features = ["arbitrary"] }
|
||||
swap_or_not_shuffle = { workspace = true }
|
||||
tempfile = { workspace = true }
|
||||
test_random_derive = { path = "../../common/test_random_derive" }
|
||||
tracing = { workspace = true }
|
||||
|
||||
Reference in New Issue
Block a user