reth_eth_wire/
lib.rs

1//! Implementation of the `eth` wire protocol.
2//!
3//! ## Feature Flags
4//!
5//! - `serde` (default): Enable serde support
6//! - `arbitrary`: Adds `proptest` and `arbitrary` support for wire types.
7
8#![doc(
9    html_logo_url = "https://raw.githubusercontent.com/paradigmxyz/reth/main/assets/reth-docs.png",
10    html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
11    issue_tracker_base_url = "https://github.com/SeismicSystems/seismic-reth/issues/"
12)]
13#![cfg_attr(not(test), warn(unused_crate_dependencies))]
14#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
15
16pub mod capability;
17mod disconnect;
18pub mod errors;
19mod ethstream;
20mod hello;
21pub mod multiplex;
22mod p2pstream;
23mod pinger;
24pub mod protocol;
25
26#[cfg(test)]
27pub mod test_utils;
28
29#[cfg(test)]
30pub use tokio_util::codec::{
31    LengthDelimitedCodec as PassthroughCodec, LengthDelimitedCodecError as PassthroughCodecError,
32};
33
34pub use crate::{
35    disconnect::CanDisconnect,
36    ethstream::{EthStream, UnauthedEthStream, MAX_MESSAGE_SIZE},
37    hello::{HelloMessage, HelloMessageBuilder, HelloMessageWithProtocols},
38    p2pstream::{
39        DisconnectP2P, P2PMessage, P2PMessageID, P2PStream, UnauthedP2PStream,
40        MAX_RESERVED_MESSAGE_ID,
41    },
42    Capability, ProtocolVersion,
43};
44
45// Re-export wire types
46#[doc(inline)]
47pub use reth_eth_wire_types::*;