From 76d7f4e1b9ecd10cca4cf1ceaa59ef105eaab07f Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 24 May 2024 11:41:48 +0200 Subject: [PATCH] chore: import codecs directly (#8385) --- Cargo.lock | 2 +- Cargo.toml | 1 + crates/net/eth-wire-types/Cargo.toml | 2 +- crates/net/eth-wire-types/src/blocks.rs | 2 +- crates/net/eth-wire-types/src/broadcast.rs | 2 +- crates/net/eth-wire-types/src/receipts.rs | 2 +- crates/net/eth-wire-types/src/state.rs | 2 +- crates/net/eth-wire-types/src/status.rs | 2 +- crates/net/eth-wire-types/src/transactions.rs | 2 +- 9 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 82542633fc..bde7478c0e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6882,7 +6882,7 @@ dependencies = [ "proptest", "proptest-derive", "rand 0.8.5", - "reth-codecs", + "reth-codecs-derive", "reth-net-common", "reth-primitives", "reth-tracing", diff --git a/Cargo.toml b/Cargo.toml index a3ac684920..2fd78aeebd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" } diff --git a/crates/net/eth-wire-types/Cargo.toml b/crates/net/eth-wire-types/Cargo.toml index d68fbbd1f0..713744d555 100644 --- a/crates/net/eth-wire-types/Cargo.toml +++ b/crates/net/eth-wire-types/Cargo.toml @@ -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"] } diff --git a/crates/net/eth-wire-types/src/blocks.rs b/crates/net/eth-wire-types/src/blocks.rs index 36b8e6e8ca..d8c13062d2 100644 --- a/crates/net/eth-wire-types/src/blocks.rs +++ b/crates/net/eth-wire-types/src/blocks.rs @@ -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"))] diff --git a/crates/net/eth-wire-types/src/broadcast.rs b/crates/net/eth-wire-types/src/broadcast.rs index 6936252392..b648f5a22d 100644 --- a/crates/net/eth-wire-types/src/broadcast.rs +++ b/crates/net/eth-wire-types/src/broadcast.rs @@ -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, }; diff --git a/crates/net/eth-wire-types/src/receipts.rs b/crates/net/eth-wire-types/src/receipts.rs index 87a0e10dea..ea2c21dd09 100644 --- a/crates/net/eth-wire-types/src/receipts.rs +++ b/crates/net/eth-wire-types/src/receipts.rs @@ -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")] diff --git a/crates/net/eth-wire-types/src/state.rs b/crates/net/eth-wire-types/src/state.rs index 334184b3b7..5f3dc83395 100644 --- a/crates/net/eth-wire-types/src/state.rs +++ b/crates/net/eth-wire-types/src/state.rs @@ -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")] diff --git a/crates/net/eth-wire-types/src/status.rs b/crates/net/eth-wire-types/src/status.rs index 6dd3f7eb42..fc6f7fd2c7 100644 --- a/crates/net/eth-wire-types/src/status.rs +++ b/crates/net/eth-wire-types/src/status.rs @@ -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, }; diff --git a/crates/net/eth-wire-types/src/transactions.rs b/crates/net/eth-wire-types/src/transactions.rs index f19bbdcc74..2a7313ad1f 100644 --- a/crates/net/eth-wire-types/src/transactions.rs +++ b/crates/net/eth-wire-types/src/transactions.rs @@ -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, };