chore: rm Once-cell dep (#14141)

This commit is contained in:
Matthias Seitz
2025-02-01 09:06:07 +01:00
committed by GitHub
parent 3d7215137a
commit d16187509e
3 changed files with 1 additions and 8 deletions

1
Cargo.lock generated
View File

@ -7443,7 +7443,6 @@ dependencies = [
"bincode",
"derive_more",
"modular-bitfield",
"once_cell",
"proptest",
"proptest-arbitrary-interop",
"rand 0.8.5",

View File

@ -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",
]

View File

@ -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),*)) => {