mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: remove reth-primitives dependency from reth-static-file (#8903)
This commit is contained in:
3
Cargo.lock
generated
3
Cargo.lock
generated
@ -8179,16 +8179,17 @@ dependencies = [
|
||||
name = "reth-static-file"
|
||||
version = "1.0.0-rc.1"
|
||||
dependencies = [
|
||||
"alloy-primitives",
|
||||
"assert_matches",
|
||||
"parking_lot 0.12.3",
|
||||
"rayon",
|
||||
"reth-db",
|
||||
"reth-db-api",
|
||||
"reth-nippy-jar",
|
||||
"reth-primitives",
|
||||
"reth-provider",
|
||||
"reth-prune-types",
|
||||
"reth-stages",
|
||||
"reth-static-file-types",
|
||||
"reth-storage-errors",
|
||||
"reth-testing-utils",
|
||||
"reth-tokio-util",
|
||||
|
||||
@ -13,7 +13,6 @@ workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-primitives.workspace = true
|
||||
reth-db.workspace = true
|
||||
reth-db-api.workspace = true
|
||||
reth-provider.workspace = true
|
||||
@ -21,6 +20,9 @@ reth-storage-errors.workspace = true
|
||||
reth-nippy-jar.workspace = true
|
||||
reth-tokio-util.workspace = true
|
||||
reth-prune-types.workspace = true
|
||||
reth-static-file-types.workspace = true
|
||||
|
||||
alloy-primitives.workspace = true
|
||||
|
||||
# misc
|
||||
tracing.workspace = true
|
||||
|
||||
@ -16,3 +16,6 @@ pub use static_file_producer::{
|
||||
StaticFileProducer, StaticFileProducerInner, StaticFileProducerResult,
|
||||
StaticFileProducerWithResult, StaticFileTargets,
|
||||
};
|
||||
|
||||
// Re-export for convenience.
|
||||
pub use reth_static_file_types::*;
|
||||
|
||||
@ -1,11 +1,12 @@
|
||||
use crate::segments::{dataset_for_compression, prepare_jar, Segment, SegmentHeader};
|
||||
use alloy_primitives::BlockNumber;
|
||||
use reth_db::{static_file::create_static_file_T1_T2_T3, tables, RawKey, RawTable};
|
||||
use reth_db_api::{cursor::DbCursorRO, database::Database, transaction::DbTx};
|
||||
use reth_primitives::{static_file::SegmentConfig, BlockNumber, StaticFileSegment};
|
||||
use reth_provider::{
|
||||
providers::{StaticFileProvider, StaticFileWriter},
|
||||
DatabaseProviderRO,
|
||||
};
|
||||
use reth_static_file_types::{SegmentConfig, StaticFileSegment};
|
||||
use reth_storage_errors::provider::ProviderResult;
|
||||
use std::{ops::RangeInclusive, path::Path};
|
||||
|
||||
|
||||
@ -9,19 +9,17 @@ pub use headers::Headers;
|
||||
mod receipts;
|
||||
pub use receipts::Receipts;
|
||||
|
||||
use alloy_primitives::BlockNumber;
|
||||
use reth_db::{RawKey, RawTable};
|
||||
use reth_db_api::{cursor::DbCursorRO, database::Database, table::Table, transaction::DbTx};
|
||||
use reth_nippy_jar::NippyJar;
|
||||
use reth_primitives::{
|
||||
static_file::{
|
||||
find_fixed_range, Compression, Filters, InclusionFilter, PerfectHashingFunction,
|
||||
SegmentConfig, SegmentHeader,
|
||||
},
|
||||
BlockNumber, StaticFileSegment,
|
||||
};
|
||||
use reth_provider::{
|
||||
providers::StaticFileProvider, DatabaseProviderRO, ProviderError, TransactionsProviderExt,
|
||||
};
|
||||
use reth_static_file_types::{
|
||||
find_fixed_range, Compression, Filters, InclusionFilter, PerfectHashingFunction, SegmentConfig,
|
||||
SegmentHeader, StaticFileSegment,
|
||||
};
|
||||
use reth_storage_errors::provider::ProviderResult;
|
||||
use std::{ops::RangeInclusive, path::Path};
|
||||
|
||||
|
||||
@ -1,14 +1,12 @@
|
||||
use crate::segments::{dataset_for_compression, prepare_jar, Segment};
|
||||
use alloy_primitives::{BlockNumber, TxNumber};
|
||||
use reth_db::{static_file::create_static_file_T1, tables};
|
||||
use reth_db_api::{cursor::DbCursorRO, database::Database, transaction::DbTx};
|
||||
use reth_primitives::{
|
||||
static_file::{SegmentConfig, SegmentHeader},
|
||||
BlockNumber, StaticFileSegment, TxNumber,
|
||||
};
|
||||
use reth_provider::{
|
||||
providers::{StaticFileProvider, StaticFileWriter},
|
||||
BlockReader, DatabaseProviderRO, TransactionsProviderExt,
|
||||
};
|
||||
use reth_static_file_types::{SegmentConfig, SegmentHeader, StaticFileSegment};
|
||||
use reth_storage_errors::provider::{ProviderError, ProviderResult};
|
||||
use std::{ops::RangeInclusive, path::Path};
|
||||
|
||||
|
||||
@ -1,14 +1,12 @@
|
||||
use crate::segments::{dataset_for_compression, prepare_jar, Segment};
|
||||
use alloy_primitives::{BlockNumber, TxNumber};
|
||||
use reth_db::{static_file::create_static_file_T1, tables};
|
||||
use reth_db_api::{cursor::DbCursorRO, database::Database, transaction::DbTx};
|
||||
use reth_primitives::{
|
||||
static_file::{SegmentConfig, SegmentHeader},
|
||||
BlockNumber, StaticFileSegment, TxNumber,
|
||||
};
|
||||
use reth_provider::{
|
||||
providers::{StaticFileProvider, StaticFileWriter},
|
||||
BlockReader, DatabaseProviderRO, TransactionsProviderExt,
|
||||
};
|
||||
use reth_static_file_types::{SegmentConfig, SegmentHeader, StaticFileSegment};
|
||||
use reth_storage_errors::provider::{ProviderError, ProviderResult};
|
||||
use std::{ops::RangeInclusive, path::Path};
|
||||
|
||||
|
||||
@ -1,12 +1,13 @@
|
||||
//! Support for producing static files.
|
||||
|
||||
use crate::{segments, segments::Segment, StaticFileProducerEvent};
|
||||
use alloy_primitives::BlockNumber;
|
||||
use parking_lot::Mutex;
|
||||
use rayon::prelude::*;
|
||||
use reth_db_api::database::Database;
|
||||
use reth_primitives::{static_file::HighestStaticFiles, BlockNumber};
|
||||
use reth_provider::{providers::StaticFileWriter, ProviderFactory, StaticFileProviderFactory};
|
||||
use reth_prune_types::PruneModes;
|
||||
use reth_static_file_types::HighestStaticFiles;
|
||||
use reth_storage_errors::provider::ProviderResult;
|
||||
use reth_tokio_util::{EventSender, EventStream};
|
||||
use std::{
|
||||
@ -228,15 +229,16 @@ mod tests {
|
||||
use crate::static_file_producer::{
|
||||
StaticFileProducer, StaticFileProducerInner, StaticFileTargets,
|
||||
};
|
||||
use alloy_primitives::{B256, U256};
|
||||
use assert_matches::assert_matches;
|
||||
use reth_db::{test_utils::TempDatabase, DatabaseEnv};
|
||||
use reth_db_api::{database::Database, transaction::DbTx};
|
||||
use reth_primitives::{static_file::HighestStaticFiles, StaticFileSegment, B256, U256};
|
||||
use reth_provider::{
|
||||
providers::StaticFileWriter, ProviderError, ProviderFactory, StaticFileProviderFactory,
|
||||
};
|
||||
use reth_prune_types::PruneModes;
|
||||
use reth_stages::test_utils::{StorageKind, TestStageDB};
|
||||
use reth_static_file_types::{HighestStaticFiles, StaticFileSegment};
|
||||
use reth_testing_utils::{
|
||||
generators,
|
||||
generators::{random_block_range, random_receipt},
|
||||
|
||||
Reference in New Issue
Block a user