chore: feature gate reth-codecs in trie-common (#13215)

This commit is contained in:
Matthias Seitz
2024-12-07 22:15:32 +01:00
committed by GitHub
parent 2846dd242e
commit 08b875f4f5
6 changed files with 32 additions and 17 deletions

View File

@ -18,14 +18,14 @@ alloy-rlp = { workspace = true, features = ["arrayvec"] }
alloy-trie.workspace = true
alloy-consensus.workspace = true
reth-primitives-traits.workspace = true
reth-codecs.workspace = true
reth-codecs = { workspace = true, optional = true }
revm-primitives.workspace = true
alloy-genesis.workspace = true
alloy-rpc-types-eth = { workspace = true, optional = true }
alloy-serde = { workspace = true, optional = true }
bytes.workspace = true
bytes = { workspace = true, optional = true }
derive_more.workspace = true
itertools.workspace = true
nybbles = { workspace = true, features = ["rlp"] }
@ -42,8 +42,11 @@ arbitrary = { workspace = true, features = ["derive"], optional = true }
[dev-dependencies]
reth-primitives-traits = { workspace = true, features = ["serde"] }
reth-codecs.workspace = true
alloy-primitives = { workspace = true, features = ["getrandom"] }
alloy-trie = { workspace = true, features = ["arbitrary", "serde"] }
bytes.workspace = true
hash-db = "=0.15.2"
plain_hasher = "0.2"
arbitrary = { workspace = true, features = ["derive"] }
@ -62,7 +65,7 @@ eip1186 = [
]
serde = [
"dep:serde",
"bytes/serde",
"bytes?/serde",
"nybbles/serde",
"alloy-primitives/serde",
"alloy-consensus/serde",
@ -70,7 +73,11 @@ serde = [
"alloy-rpc-types-eth?/serde",
"revm-primitives/serde",
"reth-primitives-traits/serde",
"reth-codecs/serde"
"reth-codecs?/serde"
]
reth-codec = [
"dep:reth-codecs",
"dep:bytes",
]
serde-bincode-compat = [
"serde",
@ -86,6 +93,7 @@ test-utils = [
"reth-codecs/test-utils",
]
arbitrary = [
"dep:reth-codecs",
"alloy-trie/arbitrary",
"dep:arbitrary",
"alloy-serde?/arbitrary",