mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
cfg: replace std feature gate alloc imports with extern crate alloc (#10861)
This commit is contained in:
@ -9,20 +9,15 @@
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
extern crate alloc;
|
||||
|
||||
use alloc::{fmt::Debug, vec::Vec};
|
||||
use alloy_primitives::{BlockHash, BlockNumber, Bloom, B256, U256};
|
||||
use reth_primitives::{
|
||||
constants::MINIMUM_GAS_LIMIT, BlockWithSenders, GotExpected, GotExpectedBoxed, Header,
|
||||
InvalidTransactionError, Receipt, Request, SealedBlock, SealedHeader,
|
||||
};
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
use std::fmt::Debug;
|
||||
|
||||
#[cfg(not(feature = "std"))]
|
||||
extern crate alloc;
|
||||
#[cfg(not(feature = "std"))]
|
||||
use alloc::{fmt::Debug, vec::Vec};
|
||||
|
||||
/// A consensus implementation that does nothing.
|
||||
pub mod noop;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user