chore: import codecs directly (#8385)

This commit is contained in:
Matthias Seitz
2024-05-24 11:41:48 +02:00
committed by GitHub
parent 05fddd3454
commit 76d7f4e1b9
9 changed files with 9 additions and 8 deletions

2
Cargo.lock generated
View File

@ -6882,7 +6882,7 @@ dependencies = [
"proptest",
"proptest-derive",
"rand 0.8.5",
"reth-codecs",
"reth-codecs-derive",
"reth-net-common",
"reth-primitives",
"reth-tracing",

View File

@ -216,6 +216,7 @@ reth-beacon-consensus = { path = "crates/consensus/beacon" }
reth-blockchain-tree = { path = "crates/blockchain-tree" }
reth-cli-runner = { path = "crates/cli/runner" }
reth-codecs = { path = "crates/storage/codecs" }
reth-codecs-derive = { path = "crates/storage/codecs/derive" }
reth-config = { path = "crates/config" }
reth-consensus = { path = "crates/consensus/consensus" }
reth-consensus-common = { path = "crates/consensus/common" }

View File

@ -13,7 +13,7 @@ workspace = true
[dependencies]
# reth
reth-codecs.workspace = true
reth-codecs-derive.workspace = true
reth-primitives.workspace = true
alloy-rlp = { workspace = true, features = ["derive"] }

View File

@ -2,7 +2,7 @@
//! types.
use alloy_rlp::{RlpDecodable, RlpDecodableWrapper, RlpEncodable, RlpEncodableWrapper};
use reth_codecs::{add_arbitrary_tests, derive_arbitrary};
use reth_codecs_derive::{add_arbitrary_tests, derive_arbitrary};
use reth_primitives::{BlockBody, BlockHashOrNumber, Header, HeadersDirection, B256};
#[cfg(any(test, feature = "arbitrary"))]

View File

@ -6,7 +6,7 @@ use alloy_rlp::{
};
use derive_more::{Constructor, Deref, DerefMut, From, IntoIterator};
use reth_codecs::derive_arbitrary;
use reth_codecs_derive::derive_arbitrary;
use reth_primitives::{
Block, Bytes, PooledTransactionsElement, TransactionSigned, TxHash, B256, U128,
};

View File

@ -1,7 +1,7 @@
//! Implements the `GetReceipts` and `Receipts` message types.
use alloy_rlp::{RlpDecodableWrapper, RlpEncodableWrapper};
use reth_codecs::derive_arbitrary;
use reth_codecs_derive::derive_arbitrary;
use reth_primitives::{ReceiptWithBloom, B256};
#[cfg(feature = "serde")]

View File

@ -1,7 +1,7 @@
//! Implements the `GetNodeData` and `NodeData` message types.
use alloy_rlp::{RlpDecodableWrapper, RlpEncodableWrapper};
use reth_codecs::derive_arbitrary;
use reth_codecs_derive::derive_arbitrary;
use reth_primitives::{Bytes, B256};
#[cfg(feature = "serde")]

View File

@ -1,6 +1,6 @@
use crate::EthVersion;
use alloy_rlp::{RlpDecodable, RlpEncodable};
use reth_codecs::derive_arbitrary;
use reth_codecs_derive::derive_arbitrary;
use reth_primitives::{
hex, Chain, ChainSpec, ForkId, Genesis, Hardfork, Head, NamedChain, B256, MAINNET, U256,
};

View File

@ -2,7 +2,7 @@
use alloy_rlp::{RlpDecodableWrapper, RlpEncodableWrapper};
use derive_more::{Constructor, Deref, IntoIterator};
use reth_codecs::derive_arbitrary;
use reth_codecs_derive::derive_arbitrary;
use reth_primitives::{
transaction::TransactionConversionError, PooledTransactionsElement, TransactionSigned, B256,
};