move tokio utils to dev dep (#345)

This commit is contained in:
Roman Krasiuk
2022-12-06 17:39:35 +02:00
committed by Georgios Konstantopoulos
parent ce8f61f0a5
commit 925001e1ee
2 changed files with 6 additions and 4 deletions

View File

@ -22,7 +22,6 @@ ethers-core = { git = "https://github.com/gakonst/ethers-rs", default-features =
tokio = { version = "1.21.2", features = ["full"] }
futures = "0.3.24"
tokio-stream = "0.1.11"
tokio-util = { version = "0.7.4", features = ["io"] }
pin-project = "1.0"
tracing = "0.1.37"
snap = "1.0.5"
@ -32,6 +31,7 @@ smol_str = { version = "0.1", default-features = false }
reth-ecies = { path = "../ecies" }
ethers-core = { git = "https://github.com/gakonst/ethers-rs", default-features = false }
tokio-util = { version = "0.7.4", features = ["io", "codec"] }
hex-literal = "0.3"
rand = "0.8"
secp256k1 = { version = "0.24.0", features = ["global-context", "rand-std", "recovery"] }

View File

@ -6,9 +6,6 @@
))]
//! Implementation of the `eth` wire protocol.
pub use tokio_util::codec::{
LengthDelimitedCodec as PassthroughCodec, LengthDelimitedCodecError as PassthroughCodecError,
};
pub mod builder;
pub mod capability;
mod disconnect;
@ -20,6 +17,11 @@ pub use builder::*;
pub mod types;
pub use types::*;
#[cfg(test)]
pub use tokio_util::codec::{
LengthDelimitedCodec as PassthroughCodec, LengthDelimitedCodecError as PassthroughCodecError,
};
pub use crate::{
disconnect::DisconnectReason,
ethstream::{EthStream, UnauthedEthStream, MAX_MESSAGE_SIZE},