diff --git a/Cargo.lock b/Cargo.lock index accaf097a898..d0657706a878 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8569,6 +8569,7 @@ dependencies = [ "bytes", "derive_more", "modular-bitfield", + "once_cell", "op-alloy-consensus", "proptest", "proptest-arbitrary-interop", diff --git a/crates/optimism/primitives/Cargo.toml b/crates/optimism/primitives/Cargo.toml index 55f8eee0b2c6..f0c35fb52e5e 100644 --- a/crates/optimism/primitives/Cargo.toml +++ b/crates/optimism/primitives/Cargo.toml @@ -36,6 +36,7 @@ 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 @@ -65,12 +66,12 @@ std = [ "secp256k1?/std", "alloy-rlp/std", "reth-zstd-compressors?/std", - "op-alloy-consensus/std" + "op-alloy-consensus/std", + "once_cell/std" ] reth-codec = [ "dep:reth-codecs", "std", - "rand", "dep:proptest", "dep:arbitrary", "reth-primitives/reth-codec", diff --git a/crates/optimism/primitives/src/lib.rs b/crates/optimism/primitives/src/lib.rs index 337d8da77beb..f04ed59ff63b 100644 --- a/crates/optimism/primitives/src/lib.rs +++ b/crates/optimism/primitives/src/lib.rs @@ -38,3 +38,5 @@ impl reth_primitives::NodePrimitives for OpPrimitives { type SignedTx = OpTransactionSigned; type Receipt = OpReceipt; } + +use once_cell as _;