mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: use exported oncelock (#13859)
This commit is contained in:
@ -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",
|
||||
|
||||
@ -38,5 +38,3 @@ impl reth_primitives_traits::NodePrimitives for OpPrimitives {
|
||||
type SignedTx = OpTransactionSigned;
|
||||
type Receipt = OpReceipt;
|
||||
}
|
||||
|
||||
use once_cell as _;
|
||||
|
||||
@ -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))]
|
||||
|
||||
Reference in New Issue
Block a user