feat(eth-wire): derive serde traits for eth-wire types (#348)

* wip: start adding serde to stuff

* add serde traits to NewBlockHashes

* derive serde traits for the rest of the types

* derive serde traits for p2p subprotocol messages

* cargo fmt
This commit is contained in:
Dan Cline
2022-12-06 21:05:22 -05:00
committed by GitHub
parent 292f5f22bc
commit 6c91322251
15 changed files with 81 additions and 35 deletions

View File

@ -11,6 +11,7 @@ readme = "README.md"
bytes = { version = "1.1" }
hex = "0.4"
thiserror = "1"
serde = "1"
# reth
reth-primitives = { path = "../../primitives" }
@ -25,7 +26,7 @@ tokio-stream = "0.1.11"
pin-project = "1.0"
tracing = "0.1.37"
snap = "1.0.5"
smol_str = { version = "0.1", default-features = false }
smol_str = { version = "0.1", features = ["serde"] }
[dev-dependencies]
reth-ecies = { path = "../ecies" }