mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
chore: make reth-evm compile with no-std (#8934)
This commit is contained in:
@ -30,4 +30,6 @@ parking_lot = { workspace = true, optional = true }
|
|||||||
parking_lot.workspace = true
|
parking_lot.workspace = true
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
default = ["std"]
|
||||||
|
std = []
|
||||||
test-utils = ["dep:parking_lot"]
|
test-utils = ["dep:parking_lot"]
|
||||||
|
|||||||
@ -6,6 +6,9 @@ use reth_prune_types::PruneModes;
|
|||||||
use revm::db::BundleState;
|
use revm::db::BundleState;
|
||||||
use revm_primitives::db::Database;
|
use revm_primitives::db::Database;
|
||||||
|
|
||||||
|
#[cfg(not(feature = "std"))]
|
||||||
|
use alloc::vec::Vec;
|
||||||
|
|
||||||
pub use reth_execution_errors::{BlockExecutionError, BlockValidationError};
|
pub use reth_execution_errors::{BlockExecutionError, BlockValidationError};
|
||||||
pub use reth_storage_errors::provider::ProviderError;
|
pub use reth_storage_errors::provider::ProviderError;
|
||||||
|
|
||||||
|
|||||||
@ -7,6 +7,10 @@
|
|||||||
)]
|
)]
|
||||||
#![cfg_attr(not(test), warn(unused_crate_dependencies))]
|
#![cfg_attr(not(test), warn(unused_crate_dependencies))]
|
||||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||||
|
#![cfg_attr(not(feature = "std"), no_std)]
|
||||||
|
|
||||||
|
#[cfg(not(feature = "std"))]
|
||||||
|
extern crate alloc;
|
||||||
|
|
||||||
use reth_chainspec::ChainSpec;
|
use reth_chainspec::ChainSpec;
|
||||||
use reth_primitives::{revm::env::fill_block_env, Address, Header, TransactionSigned, U256};
|
use reth_primitives::{revm::env::fill_block_env, Address, Header, TransactionSigned, U256};
|
||||||
|
|||||||
Reference in New Issue
Block a user