mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
Revert "Disable default features for reth-storage-api in workspace manifest" (#14471)
This commit is contained in:
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -9445,7 +9445,6 @@ dependencies = [
|
|||||||
"reth-trie",
|
"reth-trie",
|
||||||
"reth-trie-db",
|
"reth-trie-db",
|
||||||
"revm",
|
"revm",
|
||||||
"tokio",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|||||||
@ -413,7 +413,7 @@ reth-stages-api = { path = "crates/stages/api" }
|
|||||||
reth-stages-types = { path = "crates/stages/types", default-features = false }
|
reth-stages-types = { path = "crates/stages/types", default-features = false }
|
||||||
reth-static-file = { path = "crates/static-file/static-file" }
|
reth-static-file = { path = "crates/static-file/static-file" }
|
||||||
reth-static-file-types = { path = "crates/static-file/types", default-features = false }
|
reth-static-file-types = { path = "crates/static-file/types", default-features = false }
|
||||||
reth-storage-api = { path = "crates/storage/storage-api", default-features = false }
|
reth-storage-api = { path = "crates/storage/storage-api" }
|
||||||
reth-storage-errors = { path = "crates/storage/errors", default-features = false }
|
reth-storage-errors = { path = "crates/storage/errors", default-features = false }
|
||||||
reth-tasks = { path = "crates/tasks" }
|
reth-tasks = { path = "crates/tasks" }
|
||||||
reth-testing-utils = { path = "testing/testing-utils" }
|
reth-testing-utils = { path = "testing/testing-utils" }
|
||||||
|
|||||||
@ -19,7 +19,7 @@ reth-execution-types.workspace = true
|
|||||||
reth-metrics.workspace = true
|
reth-metrics.workspace = true
|
||||||
reth-primitives.workspace = true
|
reth-primitives.workspace = true
|
||||||
reth-primitives-traits.workspace = true
|
reth-primitives-traits.workspace = true
|
||||||
reth-storage-api = { workspace = true, features = ["std"] }
|
reth-storage-api.workspace = true
|
||||||
reth-trie.workspace = true
|
reth-trie.workspace = true
|
||||||
|
|
||||||
# ethereum
|
# ethereum
|
||||||
|
|||||||
@ -18,7 +18,7 @@ reth-primitives-traits.workspace = true
|
|||||||
reth-revm.workspace = true
|
reth-revm.workspace = true
|
||||||
reth-transaction-pool.workspace = true
|
reth-transaction-pool.workspace = true
|
||||||
reth-payload-builder.workspace = true
|
reth-payload-builder.workspace = true
|
||||||
reth-storage-api = { workspace = true, features = ["std"] }
|
reth-storage-api.workspace = true
|
||||||
reth-payload-builder-primitives.workspace = true
|
reth-payload-builder-primitives.workspace = true
|
||||||
reth-payload-primitives.workspace = true
|
reth-payload-primitives.workspace = true
|
||||||
reth-execution-types.workspace = true
|
reth-execution-types.workspace = true
|
||||||
|
|||||||
@ -44,7 +44,6 @@ std = [
|
|||||||
"reth-chainspec/std",
|
"reth-chainspec/std",
|
||||||
"reth-ethereum-primitives/std",
|
"reth-ethereum-primitives/std",
|
||||||
"reth-primitives-traits/std",
|
"reth-primitives-traits/std",
|
||||||
"reth-storage-api/std",
|
|
||||||
"reth-consensus?/std",
|
"reth-consensus?/std",
|
||||||
"reth-consensus-common?/std",
|
"reth-consensus-common?/std",
|
||||||
"alloy-rpc-types-eth?/std",
|
"alloy-rpc-types-eth?/std",
|
||||||
|
|||||||
@ -19,7 +19,7 @@ reth-network-p2p.workspace = true
|
|||||||
reth-network-peers.workspace = true
|
reth-network-peers.workspace = true
|
||||||
reth-primitives.workspace = true
|
reth-primitives.workspace = true
|
||||||
reth-primitives-traits.workspace = true
|
reth-primitives-traits.workspace = true
|
||||||
reth-storage-api = { workspace = true, features = ["std"] }
|
reth-storage-api.workspace = true
|
||||||
reth-tasks.workspace = true
|
reth-tasks.workspace = true
|
||||||
|
|
||||||
# optional deps for the test-utils feature
|
# optional deps for the test-utils feature
|
||||||
|
|||||||
@ -29,7 +29,7 @@ reth-eth-wire-types.workspace = true
|
|||||||
reth-ecies.workspace = true
|
reth-ecies.workspace = true
|
||||||
reth-tasks.workspace = true
|
reth-tasks.workspace = true
|
||||||
reth-transaction-pool.workspace = true
|
reth-transaction-pool.workspace = true
|
||||||
reth-storage-api = { workspace = true, features = ["std"] }
|
reth-storage-api.workspace = true
|
||||||
reth-tokio-util.workspace = true
|
reth-tokio-util.workspace = true
|
||||||
reth-consensus.workspace = true
|
reth-consensus.workspace = true
|
||||||
reth-network-peers = { workspace = true, features = ["net"] }
|
reth-network-peers = { workspace = true, features = ["net"] }
|
||||||
|
|||||||
@ -19,7 +19,7 @@ reth-primitives-traits = { workspace = true, features = ["rayon"] }
|
|||||||
reth-cli-util.workspace = true
|
reth-cli-util.workspace = true
|
||||||
reth-db = { workspace = true, features = ["mdbx"] }
|
reth-db = { workspace = true, features = ["mdbx"] }
|
||||||
reth-storage-errors.workspace = true
|
reth-storage-errors.workspace = true
|
||||||
reth-storage-api = { workspace = true, features = ["std"] }
|
reth-storage-api.workspace = true
|
||||||
reth-network = { workspace = true, features = ["serde"] }
|
reth-network = { workspace = true, features = ["serde"] }
|
||||||
reth-network-p2p.workspace = true
|
reth-network-p2p.workspace = true
|
||||||
reth-rpc-eth-types.workspace = true
|
reth-rpc-eth-types.workspace = true
|
||||||
|
|||||||
@ -12,7 +12,7 @@ workspace = true
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
# reth
|
# reth
|
||||||
reth-storage-api = { workspace = true, features = ["std"] }
|
reth-storage-api.workspace = true
|
||||||
reth-network-api.workspace = true
|
reth-network-api.workspace = true
|
||||||
reth-stages.workspace = true
|
reth-stages.workspace = true
|
||||||
reth-prune-types.workspace = true
|
reth-prune-types.workspace = true
|
||||||
|
|||||||
@ -43,7 +43,6 @@ std = [
|
|||||||
"reth-primitives-traits/std",
|
"reth-primitives-traits/std",
|
||||||
"reth-consensus?/std",
|
"reth-consensus?/std",
|
||||||
"reth-consensus-common?/std",
|
"reth-consensus-common?/std",
|
||||||
"reth-storage-api?/std",
|
|
||||||
]
|
]
|
||||||
arbitrary = [
|
arbitrary = [
|
||||||
"std",
|
"std",
|
||||||
|
|||||||
@ -21,7 +21,7 @@ alloy-rpc-types-eth.workspace = true
|
|||||||
# reth
|
# reth
|
||||||
reth-chainspec.workspace = true
|
reth-chainspec.workspace = true
|
||||||
reth-primitives-traits.workspace = true
|
reth-primitives-traits.workspace = true
|
||||||
reth-storage-api = { workspace = true, features = ["std"] }
|
reth-storage-api.workspace = true
|
||||||
reth-transaction-pool.workspace = true
|
reth-transaction-pool.workspace = true
|
||||||
|
|
||||||
# revm
|
# revm
|
||||||
|
|||||||
@ -39,7 +39,6 @@ std = [
|
|||||||
"alloy-consensus/std",
|
"alloy-consensus/std",
|
||||||
"reth-ethereum-forks/std",
|
"reth-ethereum-forks/std",
|
||||||
"reth-storage-errors/std",
|
"reth-storage-errors/std",
|
||||||
"reth-storage-api/std",
|
|
||||||
]
|
]
|
||||||
witness = ["dep:reth-trie"]
|
witness = ["dep:reth-trie"]
|
||||||
test-utils = [
|
test-utils = [
|
||||||
|
|||||||
@ -15,7 +15,7 @@ workspace = true
|
|||||||
# reth
|
# reth
|
||||||
reth-chainspec.workspace = true
|
reth-chainspec.workspace = true
|
||||||
reth-rpc-api.workspace = true
|
reth-rpc-api.workspace = true
|
||||||
reth-storage-api = { workspace = true, features = ["std"] }
|
reth-storage-api.workspace = true
|
||||||
reth-payload-builder.workspace = true
|
reth-payload-builder.workspace = true
|
||||||
reth-payload-builder-primitives.workspace = true
|
reth-payload-builder-primitives.workspace = true
|
||||||
reth-payload-primitives.workspace = true
|
reth-payload-primitives.workspace = true
|
||||||
|
|||||||
@ -20,7 +20,7 @@ reth-execution-types.workspace = true
|
|||||||
reth-metrics.workspace = true
|
reth-metrics.workspace = true
|
||||||
reth-primitives = { workspace = true, features = ["secp256k1"] }
|
reth-primitives = { workspace = true, features = ["secp256k1"] }
|
||||||
reth-primitives-traits.workspace = true
|
reth-primitives-traits.workspace = true
|
||||||
reth-storage-api = { workspace = true, features = ["std"] }
|
reth-storage-api.workspace = true
|
||||||
reth-revm.workspace = true
|
reth-revm.workspace = true
|
||||||
reth-rpc-server-types.workspace = true
|
reth-rpc-server-types.workspace = true
|
||||||
reth-rpc-types-compat.workspace = true
|
reth-rpc-types-compat.workspace = true
|
||||||
|
|||||||
@ -20,7 +20,7 @@ reth-primitives-traits = { workspace = true, features = ["reth-codec"] }
|
|||||||
reth-fs-util.workspace = true
|
reth-fs-util.workspace = true
|
||||||
reth-errors.workspace = true
|
reth-errors.workspace = true
|
||||||
reth-storage-errors.workspace = true
|
reth-storage-errors.workspace = true
|
||||||
reth-storage-api = { workspace = true, features = ["std"] }
|
reth-storage-api.workspace = true
|
||||||
reth-network-p2p.workspace = true
|
reth-network-p2p.workspace = true
|
||||||
reth-db = { workspace = true, features = ["mdbx"] }
|
reth-db = { workspace = true, features = ["mdbx"] }
|
||||||
reth-db-api.workspace = true
|
reth-db-api.workspace = true
|
||||||
|
|||||||
@ -33,13 +33,8 @@ alloy-primitives.workspace = true
|
|||||||
alloy-consensus.workspace = true
|
alloy-consensus.workspace = true
|
||||||
alloy-rpc-types-engine.workspace = true
|
alloy-rpc-types-engine.workspace = true
|
||||||
|
|
||||||
# misc
|
|
||||||
|
|
||||||
auto_impl.workspace = true
|
auto_impl.workspace = true
|
||||||
|
|
||||||
# `no_std`
|
|
||||||
tokio = { workspace = true, features = ["time"] }
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["std"]
|
default = ["std"]
|
||||||
std = [
|
std = [
|
||||||
|
|||||||
@ -1,12 +1,5 @@
|
|||||||
use alloy_rpc_types_engine::ForkchoiceState;
|
use alloy_rpc_types_engine::ForkchoiceState;
|
||||||
use reth_primitives_traits::SealedHeader;
|
use reth_primitives_traits::SealedHeader;
|
||||||
#[cfg(feature = "std")]
|
|
||||||
use std::time::Instant;
|
|
||||||
#[cfg_attr(feature = "std", allow(unused_imports))]
|
|
||||||
#[cfg(feature = "std")]
|
|
||||||
use tokio::time as _;
|
|
||||||
#[cfg(not(feature = "std"))]
|
|
||||||
use tokio::time::Instant;
|
|
||||||
|
|
||||||
/// A type that can track updates related to fork choice updates.
|
/// A type that can track updates related to fork choice updates.
|
||||||
pub trait CanonChainTracker: Send + Sync {
|
pub trait CanonChainTracker: Send + Sync {
|
||||||
@ -18,14 +11,16 @@ pub trait CanonChainTracker: Send + Sync {
|
|||||||
|
|
||||||
/// Returns the last time a fork choice update was received from the CL
|
/// Returns the last time a fork choice update was received from the CL
|
||||||
/// ([`CanonChainTracker::on_forkchoice_update_received`])
|
/// ([`CanonChainTracker::on_forkchoice_update_received`])
|
||||||
fn last_received_update_timestamp(&self) -> Option<Instant>;
|
#[cfg(feature = "std")]
|
||||||
|
fn last_received_update_timestamp(&self) -> Option<std::time::Instant>;
|
||||||
|
|
||||||
/// Notify the tracker about a transition configuration exchange.
|
/// Notify the tracker about a transition configuration exchange.
|
||||||
fn on_transition_configuration_exchanged(&self);
|
fn on_transition_configuration_exchanged(&self);
|
||||||
|
|
||||||
/// Returns the last time a transition configuration was exchanged with the CL
|
/// Returns the last time a transition configuration was exchanged with the CL
|
||||||
/// ([`CanonChainTracker::on_transition_configuration_exchanged`])
|
/// ([`CanonChainTracker::on_transition_configuration_exchanged`])
|
||||||
fn last_exchanged_transition_configuration_timestamp(&self) -> Option<Instant>;
|
#[cfg(feature = "std")]
|
||||||
|
fn last_exchanged_transition_configuration_timestamp(&self) -> Option<std::time::Instant>;
|
||||||
|
|
||||||
/// Sets the canonical head of the chain.
|
/// Sets the canonical head of the chain.
|
||||||
fn set_canonical_head(&self, header: SealedHeader<Self::Header>);
|
fn set_canonical_head(&self, header: SealedHeader<Self::Header>);
|
||||||
|
|||||||
@ -20,7 +20,7 @@ reth-primitives = { workspace = true, features = ["c-kzg", "secp256k1"] }
|
|||||||
reth-primitives-traits.workspace = true
|
reth-primitives-traits.workspace = true
|
||||||
reth-execution-types.workspace = true
|
reth-execution-types.workspace = true
|
||||||
reth-fs-util.workspace = true
|
reth-fs-util.workspace = true
|
||||||
reth-storage-api = { workspace = true, features = ["std"] }
|
reth-storage-api.workspace = true
|
||||||
reth-tasks.workspace = true
|
reth-tasks.workspace = true
|
||||||
revm-primitives.workspace = true
|
revm-primitives.workspace = true
|
||||||
revm-interpreter.workspace = true
|
revm-interpreter.workspace = true
|
||||||
|
|||||||
@ -29,7 +29,7 @@ thiserror.workspace = true
|
|||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
reth-primitives-traits = { workspace = true, features = ["arbitrary"] }
|
reth-primitives-traits = { workspace = true, features = ["arbitrary"] }
|
||||||
reth-provider = { workspace = true, features = ["test-utils"] }
|
reth-provider = { workspace = true, features = ["test-utils"] }
|
||||||
reth-storage-api = { workspace = true, features = ["std"] }
|
reth-storage-api.workspace = true
|
||||||
reth-testing-utils.workspace = true
|
reth-testing-utils.workspace = true
|
||||||
reth-trie = { workspace = true, features = ["test-utils"] }
|
reth-trie = { workspace = true, features = ["test-utils"] }
|
||||||
reth-trie-common = { workspace = true, features = ["test-utils", "arbitrary"] }
|
reth-trie-common = { workspace = true, features = ["test-utils", "arbitrary"] }
|
||||||
|
|||||||
Reference in New Issue
Block a user