chore: make alloy impls feature gated (#7747)

This commit is contained in:
Matthias Seitz
2024-04-19 17:18:43 +02:00
committed by GitHub
parent d214daebbd
commit bd4757b3b5
6 changed files with 16 additions and 8 deletions

View File

@ -13,15 +13,16 @@ workspace = true
[dependencies]
reth-codecs-derive = { path = "./derive", default-features = false }
alloy-eips.workspace = true
alloy-eips = { workspace = true, optional = true }
alloy-primitives.workspace = true
bytes.workspace = true
[dev-dependencies]
alloy-eips = { workspace = true, features = ["arbitrary", "serde"] }
alloy-eips = { workspace = true, default-features = false, features = ["arbitrary", "serde"] }
alloy-primitives = { workspace = true, features = ["arbitrary", "serde"] }
serde.workspace = true
modular-bitfield = "0.11.2"
modular-bitfield.workspace = true
test-fuzz.workspace = true
serde_json.workspace = true
@ -30,6 +31,7 @@ proptest.workspace = true
proptest-derive.workspace = true
[features]
default = ["std"]
default = ["std", "alloy"]
std = ["alloy-primitives/std", "bytes/std"]
alloy = ["alloy-eips"]
optimism = ["reth-codecs-derive/optimism"]