mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
chore: use exported oncelock (#13859)
This commit is contained in:
1
.github/assets/check_rv32imac.sh
vendored
1
.github/assets/check_rv32imac.sh
vendored
@ -16,6 +16,7 @@ crates_to_check=(
|
|||||||
## optimism
|
## optimism
|
||||||
reth-optimism-chainspec
|
reth-optimism-chainspec
|
||||||
reth-optimism-forks
|
reth-optimism-forks
|
||||||
|
reth-optimism-primitives
|
||||||
)
|
)
|
||||||
|
|
||||||
# Array to hold the results
|
# Array to hold the results
|
||||||
|
|||||||
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -8407,7 +8407,6 @@ dependencies = [
|
|||||||
"bytes",
|
"bytes",
|
||||||
"derive_more",
|
"derive_more",
|
||||||
"modular-bitfield",
|
"modular-bitfield",
|
||||||
"once_cell",
|
|
||||||
"op-alloy-consensus",
|
"op-alloy-consensus",
|
||||||
"proptest",
|
"proptest",
|
||||||
"proptest-arbitrary-interop",
|
"proptest-arbitrary-interop",
|
||||||
|
|||||||
@ -35,7 +35,6 @@ serde = { workspace = true, optional = true }
|
|||||||
|
|
||||||
# misc
|
# misc
|
||||||
derive_more = { workspace = true, features = ["deref", "from", "into", "constructor"] }
|
derive_more = { workspace = true, features = ["deref", "from", "into", "constructor"] }
|
||||||
once_cell.workspace = true
|
|
||||||
rand = { workspace = true, optional = true }
|
rand = { workspace = true, optional = true }
|
||||||
|
|
||||||
# test
|
# test
|
||||||
@ -67,7 +66,6 @@ std = [
|
|||||||
"alloy-rlp/std",
|
"alloy-rlp/std",
|
||||||
"reth-zstd-compressors?/std",
|
"reth-zstd-compressors?/std",
|
||||||
"op-alloy-consensus/std",
|
"op-alloy-consensus/std",
|
||||||
"once_cell/std"
|
|
||||||
]
|
]
|
||||||
reth-codec = [
|
reth-codec = [
|
||||||
"dep:reth-codecs",
|
"dep:reth-codecs",
|
||||||
|
|||||||
@ -38,5 +38,3 @@ impl reth_primitives_traits::NodePrimitives for OpPrimitives {
|
|||||||
type SignedTx = OpTransactionSigned;
|
type SignedTx = OpTransactionSigned;
|
||||||
type Receipt = OpReceipt;
|
type Receipt = OpReceipt;
|
||||||
}
|
}
|
||||||
|
|
||||||
use once_cell as _;
|
|
||||||
|
|||||||
@ -20,18 +20,15 @@ use core::{
|
|||||||
mem,
|
mem,
|
||||||
};
|
};
|
||||||
use derive_more::{AsRef, Deref};
|
use derive_more::{AsRef, Deref};
|
||||||
#[cfg(not(feature = "std"))]
|
|
||||||
use once_cell::sync::OnceCell as OnceLock;
|
|
||||||
use op_alloy_consensus::{DepositTransaction, OpPooledTransaction, OpTypedTransaction, TxDeposit};
|
use op_alloy_consensus::{DepositTransaction, OpPooledTransaction, OpTypedTransaction, TxDeposit};
|
||||||
#[cfg(any(test, feature = "reth-codec"))]
|
#[cfg(any(test, feature = "reth-codec"))]
|
||||||
use proptest as _;
|
use proptest as _;
|
||||||
use reth_primitives_traits::{
|
use reth_primitives_traits::{
|
||||||
crypto::secp256k1::{recover_signer, recover_signer_unchecked},
|
crypto::secp256k1::{recover_signer, recover_signer_unchecked},
|
||||||
|
sync::OnceLock,
|
||||||
transaction::error::TransactionConversionError,
|
transaction::error::TransactionConversionError,
|
||||||
InMemorySize, SignedTransaction,
|
InMemorySize, SignedTransaction,
|
||||||
};
|
};
|
||||||
#[cfg(feature = "std")]
|
|
||||||
use std::sync::OnceLock;
|
|
||||||
|
|
||||||
/// Signed transaction.
|
/// Signed transaction.
|
||||||
#[cfg_attr(any(test, feature = "reth-codec"), reth_codecs::add_arbitrary_tests(rlp))]
|
#[cfg_attr(any(test, feature = "reth-codec"), reth_codecs::add_arbitrary_tests(rlp))]
|
||||||
|
|||||||
Reference in New Issue
Block a user