chore: dont enable serde by default for eth-wire (#9339)

This commit is contained in:
Matthias Seitz
2024-07-06 19:55:08 +02:00
committed by GitHub
parent b94d8324cf
commit 1498acb096
3 changed files with 4 additions and 5 deletions

View File

@ -43,7 +43,6 @@ proptest-derive.workspace = true
rand.workspace = true
[features]
default = ["serde"]
arbitrary = [
"reth-primitives/arbitrary",
"alloy-chains/arbitrary",

View File

@ -3,7 +3,6 @@
use alloy_rlp::{Decodable, Encodable};
use bytes::BufMut;
use reth_codecs::derive_arbitrary;
use serde::{Deserialize, Serialize};
/// Represents the direction for a headers request depending on the `reverse` field of the request.
/// > The response must contain a number of block headers, of rising number when reverse is 0,
@ -16,7 +15,8 @@ use serde::{Deserialize, Serialize};
///
/// See also <https://github.com/ethereum/devp2p/blob/master/caps/eth.md#getblockheaders-0x03>
#[derive_arbitrary(rlp)]
#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash, Default, Serialize, Deserialize)]
#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash, Default)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub enum HeadersDirection {
/// Falling block number.
Falling,

View File

@ -58,15 +58,15 @@ proptest.workspace = true
proptest-arbitrary-interop.workspace = true
proptest-derive.workspace = true
async-stream.workspace = true
serde.workspace = true
[features]
default = ["serde"]
arbitrary = [
"reth-primitives/arbitrary",
"reth-eth-wire-types/arbitrary",
"dep:arbitrary",
]
serde = ["dep:serde"]
serde = ["dep:serde", "reth-eth-wire-types/serde"]
[[test]]
name = "fuzz_roundtrip"