diff --git a/Cargo.lock b/Cargo.lock index 1bc7acb439..4c6c2e2df0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -9279,6 +9279,7 @@ dependencies = [ "futures", "op-alloy-consensus", "op-alloy-rpc-types-engine", + "op-revm", "reth-chainspec", "reth-consensus", "reth-db", @@ -9313,6 +9314,7 @@ dependencies = [ "reth-transaction-pool", "reth-trie-common", "reth-trie-db", + "revm", "serde", "serde_json", "tokio", diff --git a/bin/reth/Cargo.toml b/bin/reth/Cargo.toml index ab78bc9cb1..a590f25810 100644 --- a/bin/reth/Cargo.toml +++ b/bin/reth/Cargo.toml @@ -75,6 +75,7 @@ asm-keccak = [ "reth-node-core/asm-keccak", "reth-primitives/asm-keccak", "reth-ethereum-cli/asm-keccak", + "reth-node-ethereum/asm-keccak", ] jemalloc = [ diff --git a/crates/ethereum/cli/Cargo.toml b/crates/ethereum/cli/Cargo.toml index 77cca65d01..a0a2a13fb6 100644 --- a/crates/ethereum/cli/Cargo.toml +++ b/crates/ethereum/cli/Cargo.toml @@ -46,6 +46,7 @@ dev = ["reth-cli-commands/arbitrary"] asm-keccak = [ "reth-node-core/asm-keccak", + "reth-node-ethereum/asm-keccak", ] jemalloc = [ diff --git a/crates/ethereum/node/Cargo.toml b/crates/ethereum/node/Cargo.toml index 7da04f6cae..c62ce1b8fe 100644 --- a/crates/ethereum/node/Cargo.toml +++ b/crates/ethereum/node/Cargo.toml @@ -45,7 +45,9 @@ alloy-eips.workspace = true alloy-network.workspace = true alloy-rpc-types-eth.workspace = true alloy-rpc-types-engine.workspace = true + # revm with required ethereum features +# Note: this must be kept to ensure all features are poperly enabled/forwarded revm = { workspace = true, features = ["secp256k1", "blst", "c-kzg"] } # misc @@ -80,6 +82,11 @@ rand.workspace = true [features] default = [] +asm-keccak = [ + "alloy-primitives/asm-keccak", + "reth-node-core/asm-keccak", + "revm/asm-keccak", +] js-tracer = ["reth-node-builder/js-tracer"] test-utils = [ "reth-node-builder/test-utils", diff --git a/crates/optimism/node/Cargo.toml b/crates/optimism/node/Cargo.toml index 94807bf373..539828f265 100644 --- a/crates/optimism/node/Cargo.toml +++ b/crates/optimism/node/Cargo.toml @@ -44,6 +44,11 @@ reth-optimism-consensus = { workspace = true, features = ["std"] } reth-optimism-forks.workspace = true reth-optimism-primitives = { workspace = true, features = ["serde", "serde-bincode-compat", "reth-codec"] } +# revm with required optimism features +# Note: this must be kept to ensure all features are poperly enabled/forwarded +revm = { workspace = true, features = ["secp256k1", "blst", "c-kzg"] } +op-revm.workspace = true + # ethereum alloy-primitives.workspace = true op-alloy-consensus.workspace = true @@ -87,6 +92,7 @@ asm-keccak = [ "alloy-primitives/asm-keccak", "reth-optimism-node/asm-keccak", "reth-node-core/asm-keccak", + "revm/asm-keccak", ] js-tracer = ["reth-node-builder/js-tracer"] test-utils = [ diff --git a/crates/optimism/node/src/lib.rs b/crates/optimism/node/src/lib.rs index 4ef8a70678..e62f5b1b43 100644 --- a/crates/optimism/node/src/lib.rs +++ b/crates/optimism/node/src/lib.rs @@ -42,3 +42,6 @@ pub use reth_optimism_payload_builder::{ pub use reth_optimism_evm::*; pub use reth_optimism_storage::OpStorage; + +use op_revm as _; +use revm as _;