chore: turn off reth-revm default features (#10215)

Co-authored-by: Federico Gimenez <federico.gimenez@gmail.com>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Jonathan LEI
2024-10-15 18:32:25 +08:00
committed by GitHub
parent 5e386130da
commit 39f0ab4116
9 changed files with 36 additions and 4 deletions

5
Cargo.lock generated
View File

@ -2562,7 +2562,9 @@ dependencies = [
"reth-evm-ethereum",
"reth-primitives",
"reth-provider",
"reth-revm",
"reth-stages",
"revm",
"serde",
"serde_json",
"thiserror",
@ -7937,10 +7939,12 @@ dependencies = [
"reth-payload-builder",
"reth-primitives",
"reth-provider",
"reth-revm",
"reth-rpc",
"reth-tasks",
"reth-tracing",
"reth-transaction-pool",
"revm",
"serde_json",
"tokio",
]
@ -8163,6 +8167,7 @@ dependencies = [
"reth-rpc-types-compat",
"reth-tracing",
"reth-transaction-pool",
"revm",
"serde",
"serde_json",
"thiserror",

View File

@ -381,7 +381,7 @@ reth-primitives-traits = { path = "crates/primitives-traits", default-features =
reth-provider = { path = "crates/storage/provider" }
reth-prune = { path = "crates/prune/prune" }
reth-prune-types = { path = "crates/prune/types" }
reth-revm = { path = "crates/revm" }
reth-revm = { path = "crates/revm", default-features = false }
reth-rpc = { path = "crates/rpc/rpc" }
reth-rpc-api = { path = "crates/rpc/rpc-api" }
reth-rpc-api-testing-util = { path = "crates/rpc/rpc-testing-util" }
@ -412,8 +412,6 @@ reth-trie-parallel = { path = "crates/trie/parallel" }
# revm
revm = { version = "14.0.3", features = [
"std",
"secp256k1",
"blst",
], default-features = false }
revm-inspectors = "0.8.1"
revm-primitives = { version = "10.0.0", features = [

View File

@ -1,4 +1,10 @@
//! EVM config for vanilla ethereum.
//!
//! # Revm features
//!
//! This crate does __not__ enforce specific revm features such as `blst` or `c-kzg`, which are
//! critical for revm's evm internals, it is the responsibility of the implementer to ensure the
//! proper features are selected.
#![doc(
html_logo_url = "https://raw.githubusercontent.com/paradigmxyz/reth/main/assets/reth-docs.png",

View File

@ -29,6 +29,10 @@ reth-rpc.workspace = true
reth-node-api.workspace = true
reth-chainspec.workspace = true
reth-primitives.workspace = true
reth-revm = { workspace = true, features = ["std"] }
# revm with required ethereum features
revm = { workspace = true, features = ["secp256k1", "blst", "c-kzg"] }
# misc
eyre.workspace = true

View File

@ -8,6 +8,9 @@
#![cfg_attr(not(test), warn(unused_crate_dependencies))]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
use reth_revm as _;
use revm as _;
pub use reth_ethereum_engine_primitives::EthEngineTypes;
pub mod evm;

View File

@ -1,4 +1,10 @@
//! Traits for configuring an EVM specifics.
//!
//! # Revm features
//!
//! This crate does __not__ enforce specific revm features such as `blst` or `c-kzg`, which are
//! critical for revm's evm internals, it is the responsibility of the implementer to ensure the
//! proper features are selected.
#![doc(
html_logo_url = "https://raw.githubusercontent.com/paradigmxyz/reth/main/assets/reth-docs.png",

View File

@ -27,7 +27,7 @@ reth-provider.workspace = true
reth-transaction-pool.workspace = true
reth-network.workspace = true
reth-evm.workspace = true
reth-revm.workspace = true
reth-revm = { workspace = true, features = ["std"] }
reth-beacon-consensus.workspace = true
reth-discv5.workspace = true
reth-rpc-eth-types.workspace = true
@ -42,6 +42,9 @@ reth-optimism-chainspec.workspace = true
reth-optimism-consensus.workspace = true
reth-optimism-forks.workspace = true
# revm with required optimism features
revm = { workspace = true, features = ["secp256k1", "blst", "c-kzg"] }
# ethereum
alloy-eips.workspace = true
alloy-primitives.workspace = true
@ -85,6 +88,7 @@ optimism = [
"reth-optimism-payload-builder/optimism",
"reth-beacon-consensus/optimism",
"reth-revm/optimism",
"revm/optimism",
"reth-auto-seal-consensus/optimism",
"reth-optimism-rpc/optimism",
"reth-engine-local/optimism",

View File

@ -23,6 +23,9 @@ reth-db-api.workspace = true
reth-provider = { workspace = true, features = ["test-utils"] }
reth-stages.workspace = true
reth-evm-ethereum.workspace = true
reth-revm = { workspace = true, features = ["std"] }
revm = { workspace = true, features = ["secp256k1", "blst", "c-kzg"] }
alloy-rlp.workspace = true
alloy-primitives.workspace = true

View File

@ -7,6 +7,9 @@
)]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
use reth_revm as _;
use revm as _;
pub mod case;
pub mod result;
pub mod suite;