mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: move generators module (#8429)
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -7110,6 +7110,7 @@ dependencies = [
|
||||
"reth-fs-util",
|
||||
"reth-network-p2p",
|
||||
"reth-storage-errors",
|
||||
"reth-testing-utils",
|
||||
"thiserror",
|
||||
]
|
||||
|
||||
@ -8072,6 +8073,7 @@ name = "reth-testing-utils"
|
||||
version = "0.2.0-beta.7"
|
||||
dependencies = [
|
||||
"alloy-genesis 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=64feb9b)",
|
||||
"rand 0.8.5",
|
||||
"reth-primitives",
|
||||
"secp256k1 0.28.2",
|
||||
]
|
||||
|
||||
@ -18,9 +18,11 @@ reth-fs-util.workspace = true
|
||||
reth-network-p2p.workspace = true
|
||||
reth-storage-errors.workspace = true
|
||||
|
||||
reth-testing-utils = { workspace = true, optional = true }
|
||||
|
||||
# misc
|
||||
thiserror.workspace = true
|
||||
|
||||
[features]
|
||||
test-utils = ["reth-consensus/test-utils", "reth-network-p2p/test-utils"]
|
||||
test-utils = ["reth-consensus/test-utils", "reth-network-p2p/test-utils", "reth-testing-utils"]
|
||||
clap = ["reth-storage-errors/clap"]
|
||||
@ -36,4 +36,7 @@ pub use reth_blockchain_tree_api as blockchain_tree;
|
||||
|
||||
/// Common test helpers for mocking out Consensus, Downloaders and Header Clients.
|
||||
#[cfg(feature = "test-utils")]
|
||||
pub use reth_network_p2p::test_utils;
|
||||
pub mod test_utils {
|
||||
pub use reth_network_p2p::test_utils::*;
|
||||
pub use reth_testing_utils::generators;
|
||||
}
|
||||
|
||||
@ -28,13 +28,7 @@ auto_impl.workspace = true
|
||||
thiserror.workspace = true
|
||||
tracing.workspace = true
|
||||
|
||||
secp256k1 = { workspace = true, default-features = false, features = [
|
||||
"alloc",
|
||||
"recovery",
|
||||
"rand",
|
||||
], optional = true }
|
||||
parking_lot = { workspace = true, optional = true }
|
||||
rand = { workspace = true, optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
reth-consensus = { workspace = true, features = ["test-utils"] }
|
||||
@ -45,4 +39,4 @@ tokio = { workspace = true, features = ["full"] }
|
||||
secp256k1 = { workspace = true, features = ["alloc", "recovery", "rand"] }
|
||||
|
||||
[features]
|
||||
test-utils = ["reth-consensus/test-utils", "secp256k1", "rand", "parking_lot"]
|
||||
test-utils = ["reth-consensus/test-utils", "parking_lot"]
|
||||
|
||||
@ -2,9 +2,6 @@ mod bodies;
|
||||
mod full_block;
|
||||
mod headers;
|
||||
|
||||
/// Generators for different data structures like block headers, block bodies and ranges of those.
|
||||
pub mod generators;
|
||||
|
||||
pub use bodies::*;
|
||||
pub use full_block::*;
|
||||
pub use headers::*;
|
||||
|
||||
@ -12,6 +12,9 @@ repository.workspace = true
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
secp256k1.workspace = true
|
||||
alloy-genesis.workspace = true
|
||||
reth-primitives.workspace = true
|
||||
|
||||
alloy-genesis.workspace = true
|
||||
|
||||
secp256k1.workspace = true
|
||||
rand.workspace = true
|
||||
@ -1,3 +1,5 @@
|
||||
//! Generators for different data structures like block headers, block bodies and ranges of those.
|
||||
|
||||
pub use rand::Rng;
|
||||
use rand::{
|
||||
distributions::uniform::SampleRange, rngs::StdRng, seq::SliceRandom, thread_rng, SeedableRng,
|
||||
@ -11,3 +11,5 @@
|
||||
pub mod genesis_allocator;
|
||||
|
||||
pub use genesis_allocator::GenesisAllocator;
|
||||
|
||||
pub mod generators;
|
||||
|
||||
Reference in New Issue
Block a user