mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
move tokio utils to dev dep (#345)
This commit is contained in:
committed by
Georgios Konstantopoulos
parent
ce8f61f0a5
commit
925001e1ee
@ -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"] }
|
||||
|
||||
@ -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},
|
||||
|
||||
Reference in New Issue
Block a user