chore(reth-network-api): no_std support (#9595)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
nk_ysg
2024-07-18 18:26:19 +08:00
committed by GitHub
parent 9e1ea9718a
commit 19fa2abf8a

View File

@ -18,7 +18,6 @@ pub use error::NetworkError;
pub use reputation::{Reputation, ReputationChangeKind};
use reth_eth_wire::{capability::Capabilities, DisconnectReason, EthVersion, Status};
use reth_network_peers::NodeRecord;
use serde::{Deserialize, Serialize};
use std::{future::Future, net::SocketAddr, sync::Arc, time::Instant};
/// The `PeerId` type.
@ -246,7 +245,8 @@ impl std::fmt::Display for Direction {
}
/// The status of the network being ran by the local node.
#[derive(Clone, Debug, Serialize, Deserialize)]
#[derive(Clone, Debug)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct NetworkStatus {
/// The local node client version.
pub client_version: String,