mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 02:49:55 +00:00
feat: no_std for reth-evm (#14561)
This commit is contained in:
1
.github/assets/check_rv32imac.sh
vendored
1
.github/assets/check_rv32imac.sh
vendored
@ -16,6 +16,7 @@ crates_to_check=(
|
||||
reth-execution-errors
|
||||
reth-execution-types
|
||||
reth-db-models
|
||||
reth-evm
|
||||
|
||||
## ethereum
|
||||
reth-ethereum-forks
|
||||
|
||||
1
.github/assets/check_wasm.sh
vendored
1
.github/assets/check_wasm.sh
vendored
@ -28,7 +28,6 @@ exclude_crates=(
|
||||
reth-ethereum-cli
|
||||
reth-ethereum-payload-builder
|
||||
reth-etl
|
||||
reth-evm
|
||||
reth-exex
|
||||
reth-exex-test-utils
|
||||
reth-ipc
|
||||
|
||||
@ -346,7 +346,7 @@ reth-ethereum-payload-builder = { path = "crates/ethereum/payload" }
|
||||
reth-ethereum-primitives = { path = "crates/ethereum/primitives", default-features = false }
|
||||
reth-ethereum = { path = "crates/ethereum/reth" }
|
||||
reth-etl = { path = "crates/etl" }
|
||||
reth-evm = { path = "crates/evm" }
|
||||
reth-evm = { path = "crates/evm", default-features = false }
|
||||
reth-evm-ethereum = { path = "crates/ethereum/evm" }
|
||||
reth-optimism-evm = { path = "crates/optimism/evm", default-features = false }
|
||||
reth-execution-errors = { path = "crates/evm/execution-errors", default-features = false }
|
||||
@ -559,7 +559,7 @@ async-stream = "0.3"
|
||||
async-trait = "0.1.68"
|
||||
futures = "0.3"
|
||||
futures-core = "0.3"
|
||||
futures-util = "0.3"
|
||||
futures-util = { version = "0.3", default-features = false }
|
||||
hyper = "1.3"
|
||||
hyper-util = "0.1.5"
|
||||
pin-project = "1.0.12"
|
||||
|
||||
4
Makefile
4
Makefile
@ -432,7 +432,7 @@ rustdocs: ## Runs `cargo docs` to generate the Rust documents in the `target/doc
|
||||
cargo +nightly docs \
|
||||
--document-private-items
|
||||
|
||||
test:
|
||||
cargo-test:
|
||||
cargo test \
|
||||
--workspace \
|
||||
--bin "op-reth" \
|
||||
@ -445,7 +445,7 @@ test-doc:
|
||||
cargo test --doc --workspace --all-features
|
||||
|
||||
test:
|
||||
make test && \
|
||||
make cargo-test && \
|
||||
make test-doc
|
||||
|
||||
pr:
|
||||
|
||||
@ -18,7 +18,7 @@ reth-consensus.workspace = true
|
||||
reth-db.workspace = true
|
||||
reth-engine-primitives.workspace = true
|
||||
reth-errors.workspace = true
|
||||
reth-evm.workspace = true
|
||||
reth-evm = { workspace = true, features = ["metrics"] }
|
||||
reth-network-p2p.workspace = true
|
||||
reth-payload-builder.workspace = true
|
||||
reth-payload-primitives.workspace = true
|
||||
|
||||
@ -57,4 +57,5 @@ std = [
|
||||
"reth-chainspec/std",
|
||||
"alloy-evm/std",
|
||||
"reth-execution-types/std",
|
||||
"reth-evm/std",
|
||||
]
|
||||
|
||||
@ -49,6 +49,7 @@ std = [
|
||||
"reth-consensus-common?/std",
|
||||
"alloy-rpc-types-eth?/std",
|
||||
"reth-storage-api?/std",
|
||||
"reth-evm?/std",
|
||||
]
|
||||
arbitrary = [
|
||||
"std",
|
||||
|
||||
@ -47,8 +47,6 @@ metrics-util = { workspace = true, features = ["debugging"] }
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"dep:metrics",
|
||||
"dep:reth-metrics",
|
||||
"reth-consensus/std",
|
||||
"reth-primitives/std",
|
||||
"reth-primitives-traits/std",
|
||||
@ -66,6 +64,12 @@ std = [
|
||||
"reth-execution-errors/std",
|
||||
"reth-execution-types/std",
|
||||
"reth-storage-errors/std",
|
||||
"futures-util/std",
|
||||
]
|
||||
metrics = [
|
||||
"std",
|
||||
"dep:metrics",
|
||||
"dep:reth-metrics",
|
||||
]
|
||||
test-utils = [
|
||||
"dep:parking_lot",
|
||||
|
||||
@ -36,7 +36,7 @@ pub mod execute;
|
||||
mod aliases;
|
||||
pub use aliases::*;
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
#[cfg(feature = "metrics")]
|
||||
pub mod metrics;
|
||||
pub mod noop;
|
||||
pub mod state_change;
|
||||
|
||||
@ -8,13 +8,13 @@ use crate::{
|
||||
system_calls::OnStateHook,
|
||||
Database,
|
||||
};
|
||||
use alloc::{sync::Arc, vec::Vec};
|
||||
use alloy_eips::eip7685::Requests;
|
||||
use parking_lot::Mutex;
|
||||
use reth_execution_errors::BlockExecutionError;
|
||||
use reth_execution_types::{BlockExecutionResult, ExecutionOutcome};
|
||||
use reth_primitives::{EthPrimitives, NodePrimitives, RecoveredBlock};
|
||||
use revm_database::State;
|
||||
use std::sync::Arc;
|
||||
|
||||
/// A [`BlockExecutorProvider`] that returns mocked execution results.
|
||||
#[derive(Clone, Debug, Default)]
|
||||
|
||||
@ -82,4 +82,5 @@ std = [
|
||||
"alloy-op-evm/std",
|
||||
"revm-database/std",
|
||||
"revm-optimism/std",
|
||||
"reth-evm/std",
|
||||
]
|
||||
|
||||
@ -48,6 +48,7 @@ std = [
|
||||
"reth-optimism-primitives/std",
|
||||
"reth-primitives-traits/std",
|
||||
"reth-storage-api?/std",
|
||||
"reth-evm?/std",
|
||||
]
|
||||
arbitrary = [
|
||||
"std",
|
||||
|
||||
@ -20,7 +20,7 @@ reth-consensus.workspace = true
|
||||
reth-db.workspace = true
|
||||
reth-db-api.workspace = true
|
||||
reth-etl.workspace = true
|
||||
reth-evm.workspace = true
|
||||
reth-evm = { workspace = true, features = ["metrics"] }
|
||||
reth-exex.workspace = true
|
||||
reth-fs-util.workspace = true
|
||||
reth-network-p2p.workspace = true
|
||||
|
||||
@ -15,7 +15,7 @@ workspace = true
|
||||
# async
|
||||
tokio = { workspace = true, features = ["sync", "rt"] }
|
||||
tracing-futures.workspace = true
|
||||
futures-util.workspace = true
|
||||
futures-util = { workspace = true, features = ["std"] }
|
||||
|
||||
# metrics
|
||||
reth-metrics.workspace = true
|
||||
|
||||
Reference in New Issue
Block a user