feat: add alloy-compat for op prims (#14406)

This commit is contained in:
Matthias Seitz
2025-02-11 20:15:34 +01:00
committed by GitHub
parent 3f680fd6cc
commit 974b197d30
4 changed files with 68 additions and 0 deletions

View File

@ -27,6 +27,9 @@ secp256k1 = { workspace = true, optional = true }
# op
op-alloy-consensus.workspace = true
alloy-rpc-types-eth = { workspace = true, optional = true }
alloy-network = { workspace = true, optional = true }
alloy-serde = { workspace = true, optional = true }
# codec
bytes = { workspace = true, optional = true }
@ -66,7 +69,10 @@ std = [
"alloy-rlp/std",
"reth-zstd-compressors?/std",
"op-alloy-consensus/std",
"alloy-rpc-types-eth?/std",
"alloy-serde?/std",
]
alloy-compat = ["dep:alloy-network", "dep:alloy-serde", "dep:alloy-rpc-types-eth"]
reth-codec = [
"dep:reth-codecs",
"std",
@ -89,6 +95,7 @@ serde = [
"rand?/serde",
"revm-primitives?/serde",
"secp256k1?/serde",
"alloy-rpc-types-eth?/serde",
]
serde-bincode-compat = [
"alloy-consensus/serde-bincode-compat",
@ -108,6 +115,8 @@ arbitrary = [
"alloy-primitives/arbitrary",
"revm-primitives?/arbitrary",
"rand",
"alloy-rpc-types-eth?/arbitrary",
"alloy-serde?/arbitrary",
]
optimism = [
"dep:revm-primitives",