Skip to content

Commit

Permalink
feat: Add no-std support to reth-chainspec (#8939)
Browse files Browse the repository at this point in the history
  • Loading branch information
JackG-eth committed Jun 18, 2024
1 parent 1557b7b commit 450f06a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/chainspec/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
)]
#![cfg_attr(not(test), warn(unused_crate_dependencies))]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
#![cfg_attr(not(feature = "std"), no_std)]

pub use alloy_chains::{Chain, ChainKind, NamedChain};
pub use info::ChainInfo;
Expand All @@ -17,6 +18,9 @@ pub use spec::{
#[cfg(feature = "optimism")]
pub use spec::{BASE_MAINNET, BASE_SEPOLIA, OP_MAINNET, OP_SEPOLIA};

#[cfg(not(feature = "std"))]
extern crate alloc;

// /// The config info module namely spec id.
// pub mod config;
/// The chain info module.
Expand Down

0 comments on commit 450f06a

Please sign in to comment.