chore: flatten reth-primitives dep (#13082)

This commit is contained in:
Matthias Seitz
2024-12-02 22:55:56 +01:00
committed by GitHub
parent 039f1215d0
commit 9831953781
4 changed files with 9 additions and 7 deletions

3
Cargo.lock generated
View File

@ -9298,7 +9298,8 @@ dependencies = [
"alloy-rlp",
"derive_more 1.0.0",
"reth-fs-util",
"reth-primitives",
"reth-primitives-traits",
"reth-static-file-types",
]
[[package]]

View File

@ -12,8 +12,9 @@ workspace = true
[dependencies]
# reth
reth-primitives.workspace = true
reth-primitives-traits.workspace = true
reth-fs-util.workspace = true
reth-static-file-types.workspace = true
# ethereum
alloy-eips.workspace = true
@ -26,9 +27,9 @@ derive_more.workspace = true
[features]
default = ["std"]
std = [
"reth-primitives/std",
"alloy-eips/std",
"alloy-primitives/std",
"alloy-rlp/std",
"derive_more/std"
"derive_more/std",
"reth-primitives-traits/std"
]

View File

@ -3,7 +3,8 @@ use alloc::{boxed::Box, string::String};
use alloy_eips::{BlockHashOrNumber, HashOrNumber};
use alloy_primitives::{Address, BlockHash, BlockNumber, TxNumber, B256};
use derive_more::Display;
use reth_primitives::{GotExpected, StaticFileSegment};
use reth_primitives_traits::GotExpected;
use reth_static_file_types::StaticFileSegment;
/// Provider result type.
pub type ProviderResult<Ok> = Result<Ok, ProviderError>;
@ -165,7 +166,6 @@ impl core::error::Error for ProviderError {
fn source(&self) -> Option<&(dyn core::error::Error + 'static)> {
match self {
Self::Database(source) => core::error::Error::source(source),
Self::Rlp(source) => core::error::Error::source(source),
Self::StorageLockError(source) => core::error::Error::source(source),
Self::UnifiedStorageWriterError(source) => core::error::Error::source(source),
_ => Option::None,

View File

@ -1,5 +1,5 @@
use crate::db::DatabaseError;
use reth_primitives::StaticFileSegment;
use reth_static_file_types::StaticFileSegment;
/// `UnifiedStorageWriter` related errors
/// `StorageWriter` related errors