mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: no_std for reth-evm (#14561)
This commit is contained in:
@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user