mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: dont enable serde by default for eth-wire (#9339)
This commit is contained in:
@ -43,7 +43,6 @@ proptest-derive.workspace = true
|
|||||||
rand.workspace = true
|
rand.workspace = true
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["serde"]
|
|
||||||
arbitrary = [
|
arbitrary = [
|
||||||
"reth-primitives/arbitrary",
|
"reth-primitives/arbitrary",
|
||||||
"alloy-chains/arbitrary",
|
"alloy-chains/arbitrary",
|
||||||
|
|||||||
@ -3,7 +3,6 @@
|
|||||||
use alloy_rlp::{Decodable, Encodable};
|
use alloy_rlp::{Decodable, Encodable};
|
||||||
use bytes::BufMut;
|
use bytes::BufMut;
|
||||||
use reth_codecs::derive_arbitrary;
|
use reth_codecs::derive_arbitrary;
|
||||||
use serde::{Deserialize, Serialize};
|
|
||||||
|
|
||||||
/// Represents the direction for a headers request depending on the `reverse` field of the request.
|
/// 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,
|
/// > 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>
|
/// See also <https://github.com/ethereum/devp2p/blob/master/caps/eth.md#getblockheaders-0x03>
|
||||||
#[derive_arbitrary(rlp)]
|
#[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 {
|
pub enum HeadersDirection {
|
||||||
/// Falling block number.
|
/// Falling block number.
|
||||||
Falling,
|
Falling,
|
||||||
|
|||||||
@ -58,15 +58,15 @@ proptest.workspace = true
|
|||||||
proptest-arbitrary-interop.workspace = true
|
proptest-arbitrary-interop.workspace = true
|
||||||
proptest-derive.workspace = true
|
proptest-derive.workspace = true
|
||||||
async-stream.workspace = true
|
async-stream.workspace = true
|
||||||
|
serde.workspace = true
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["serde"]
|
|
||||||
arbitrary = [
|
arbitrary = [
|
||||||
"reth-primitives/arbitrary",
|
"reth-primitives/arbitrary",
|
||||||
"reth-eth-wire-types/arbitrary",
|
"reth-eth-wire-types/arbitrary",
|
||||||
"dep:arbitrary",
|
"dep:arbitrary",
|
||||||
]
|
]
|
||||||
serde = ["dep:serde"]
|
serde = ["dep:serde", "reth-eth-wire-types/serde"]
|
||||||
|
|
||||||
[[test]]
|
[[test]]
|
||||||
name = "fuzz_roundtrip"
|
name = "fuzz_roundtrip"
|
||||||
|
|||||||
Reference in New Issue
Block a user