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:
@ -1,9 +1,6 @@
|
||||
//! Chain specification for the Base Mainnet network.
|
||||
|
||||
#[cfg(not(feature = "std"))]
|
||||
use alloc::sync::Arc;
|
||||
#[cfg(feature = "std")]
|
||||
use std::sync::Arc;
|
||||
|
||||
use alloy_chains::Chain;
|
||||
use alloy_primitives::{b256, U256};
|
||||
|
||||
@ -1,9 +1,6 @@
|
||||
//! Chain specification for the Base Sepolia testnet network.
|
||||
|
||||
#[cfg(not(feature = "std"))]
|
||||
use alloc::sync::Arc;
|
||||
#[cfg(feature = "std")]
|
||||
use std::sync::Arc;
|
||||
|
||||
use alloy_chains::Chain;
|
||||
use alloy_primitives::{b256, U256};
|
||||
|
||||
@ -1,9 +1,6 @@
|
||||
//! Chain specification in dev mode for custom chain.
|
||||
|
||||
#[cfg(not(feature = "std"))]
|
||||
use alloc::sync::Arc;
|
||||
#[cfg(feature = "std")]
|
||||
use std::sync::Arc;
|
||||
|
||||
use alloy_chains::Chain;
|
||||
use alloy_primitives::U256;
|
||||
|
||||
@ -7,7 +7,6 @@
|
||||
)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
#[cfg(not(feature = "std"))]
|
||||
extern crate alloc;
|
||||
|
||||
pub mod constants;
|
||||
|
||||
@ -1,9 +1,6 @@
|
||||
//! Chain specification for the Optimism Mainnet network.
|
||||
|
||||
#[cfg(not(feature = "std"))]
|
||||
use alloc::sync::Arc;
|
||||
#[cfg(feature = "std")]
|
||||
use std::sync::Arc;
|
||||
|
||||
use alloy_chains::Chain;
|
||||
use alloy_primitives::{b256, U256};
|
||||
|
||||
@ -1,9 +1,6 @@
|
||||
//! Chain specification for the Optimism Sepolia testnet network.
|
||||
|
||||
#[cfg(not(feature = "std"))]
|
||||
use alloc::sync::Arc;
|
||||
#[cfg(feature = "std")]
|
||||
use std::sync::Arc;
|
||||
|
||||
use alloy_chains::{Chain, NamedChain};
|
||||
use alloy_primitives::{b256, U256};
|
||||
|
||||
Reference in New Issue
Block a user