diff --git a/Cargo.lock b/Cargo.lock index a57018f..26593a7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -14,12 +14,6 @@ dependencies = [ "zerocopy", ] -[[package]] -name = "allocator-api2" -version = "0.2.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f" - [[package]] name = "alloy-consensus" version = "0.4.0" @@ -388,7 +382,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" dependencies = [ "ahash", - "allocator-api2", "serde", ] @@ -718,7 +711,6 @@ version = "0.6.0" dependencies = [ "alloy-eips", "alloy-primitives", - "hashbrown", "lazy_static", "op-alloy-genesis", "serde", diff --git a/Cargo.toml b/Cargo.toml index 1f909d6..953e7a6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,12 +23,11 @@ incremental = false [dependencies] # Alloy -alloy-primitives = { version = "0.8", default-features = false } +alloy-primitives = { version = "0.8", default-features = false, features = ["map"] } op-alloy-genesis = { version = "0.3", default-features = false, features = ["serde"] } # Misc lazy_static = { version = "1.4.0", features = ["spin_no_std"] } -hashbrown = { version = "0.14.3", features = ["serde"] } # Serialization serde = { version = "1.0.203", default-features = false, features = ["derive", "alloc"] } diff --git a/src/lib.rs b/src/lib.rs index 23192f3..49ff4ee 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,9 +12,7 @@ extern crate alloc; -use alloc::vec::Vec; -pub use hashbrown::HashMap; - +pub use alloy_primitives::map::HashMap; pub use op_alloy_genesis::{ChainConfig, RollupConfig}; pub mod chain_list; @@ -28,7 +26,7 @@ lazy_static::lazy_static! { static ref _INIT: Registry = Registry::from_chain_list(); /// Chain configurations exported from the registry - pub static ref CHAINS: Vec = _INIT.chains.clone(); + pub static ref CHAINS: alloc::vec::Vec = _INIT.chains.clone(); /// OP Chain configurations exported from the registry pub static ref OPCHAINS: HashMap = _INIT.op_chains.clone(); diff --git a/src/superchain.rs b/src/superchain.rs index 43cd81a..7301a6d 100644 --- a/src/superchain.rs +++ b/src/superchain.rs @@ -2,8 +2,7 @@ use super::Chain; use alloc::{string::String, vec::Vec}; -use alloy_primitives::Address; -use hashbrown::HashMap; +use alloy_primitives::{map::HashMap, Address}; use op_alloy_genesis::{chain::HardForkConfiguration, ChainConfig, RollupConfig}; /// A superchain configuration.