chore: use exported oncelock (#13859)

This commit is contained in:
Matthias Seitz
2025-01-18 16:46:58 +01:00
committed by GitHub
parent c46f23f8de
commit f59865b682
5 changed files with 2 additions and 9 deletions

View File

@ -35,7 +35,6 @@ serde = { workspace = true, optional = true }
# misc
derive_more = { workspace = true, features = ["deref", "from", "into", "constructor"] }
once_cell.workspace = true
rand = { workspace = true, optional = true }
# test
@ -67,7 +66,6 @@ std = [
"alloy-rlp/std",
"reth-zstd-compressors?/std",
"op-alloy-consensus/std",
"once_cell/std"
]
reth-codec = [
"dep:reth-codecs",

View File

@ -38,5 +38,3 @@ impl reth_primitives_traits::NodePrimitives for OpPrimitives {
type SignedTx = OpTransactionSigned;
type Receipt = OpReceipt;
}
use once_cell as _;

View File

@ -20,18 +20,15 @@ use core::{
mem,
};
use derive_more::{AsRef, Deref};
#[cfg(not(feature = "std"))]
use once_cell::sync::OnceCell as OnceLock;
use op_alloy_consensus::{DepositTransaction, OpPooledTransaction, OpTypedTransaction, TxDeposit};
#[cfg(any(test, feature = "reth-codec"))]
use proptest as _;
use reth_primitives_traits::{
crypto::secp256k1::{recover_signer, recover_signer_unchecked},
sync::OnceLock,
transaction::error::TransactionConversionError,
InMemorySize, SignedTransaction,
};
#[cfg(feature = "std")]
use std::sync::OnceLock;
/// Signed transaction.
#[cfg_attr(any(test, feature = "reth-codec"), reth_codecs::add_arbitrary_tests(rlp))]