From d16187509eecb0dfa3428150b694c65bd22a7066 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Sat, 1 Feb 2025 09:06:07 +0100 Subject: [PATCH] chore: rm Once-cell dep (#14141) --- Cargo.lock | 1 - crates/ethereum/primitives/Cargo.toml | 2 -- crates/ethereum/primitives/src/transaction.rs | 6 +----- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2e406c1b9..02cf7dcfa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7443,7 +7443,6 @@ dependencies = [ "bincode", "derive_more", "modular-bitfield", - "once_cell", "proptest", "proptest-arbitrary-interop", "rand 0.8.5", diff --git a/crates/ethereum/primitives/Cargo.toml b/crates/ethereum/primitives/Cargo.toml index 2dc70ff26..81b15d0f9 100644 --- a/crates/ethereum/primitives/Cargo.toml +++ b/crates/ethereum/primitives/Cargo.toml @@ -31,7 +31,6 @@ revm-primitives.workspace = true arbitrary = { workspace = true, optional = true, features = ["derive"] } derive_more.workspace = true modular-bitfield = { workspace = true, optional = true } -once_cell.workspace = true rand = { workspace = true, optional = true } secp256k1 = { workspace = true, optional = true, features = ["rand"] } serde.workspace = true @@ -66,7 +65,6 @@ std = [ "alloy-eips/std", "derive_more/std", "secp256k1?/std", - "once_cell/std", "revm-primitives/std", "alloy-serde?/std", ] diff --git a/crates/ethereum/primitives/src/transaction.rs b/crates/ethereum/primitives/src/transaction.rs index c90a537b7..973f516a8 100644 --- a/crates/ethereum/primitives/src/transaction.rs +++ b/crates/ethereum/primitives/src/transaction.rs @@ -15,18 +15,14 @@ use alloy_primitives::{ }; use alloy_rlp::{Decodable, Encodable}; use core::hash::{Hash, Hasher}; -use once_cell as _; -#[cfg(not(feature = "std"))] -use once_cell::sync::OnceCell as OnceLock; use reth_primitives_traits::{ crypto::secp256k1::{recover_signer, recover_signer_unchecked}, + sync::OnceLock, transaction::{error::TransactionConversionError, signed::RecoveryError}, FillTxEnv, InMemorySize, SignedTransaction, }; use revm_primitives::{AuthorizationList, TxEnv}; use serde::{Deserialize, Serialize}; -#[cfg(feature = "std")] -use std::sync::OnceLock; macro_rules! delegate { ($self:expr => $tx:ident.$method:ident($($arg:expr),*)) => {