Module serde_bincode_compat

Source
Available on crate feature serde-bincode-compat only.
Expand description

Bincode-compatible serde implementations for common abstracted types in Reth.

bincode crate doesn’t work with optionally serializable serde fields, but some of the Reth types require optional serialization for RPC compatibility. This module makes so that all fields are serialized.

Read more: https://github.com/bincode-org/bincode/issues/326

Re-exports§

pub use super::block::serde_bincode_compat as block;
pub use super::header::serde_bincode_compat as header;
pub use super::block::serde_bincode_compat::*;
pub use super::header::serde_bincode_compat::*;

Structs§

Block
Bincode-compatible [alloy_consensus::Block] serde implementation.
BlockBody
Bincode-compatible [alloy_consensus::BlockBody] serde implementation.

Traits§

SerdeBincodeCompat
Trait for types that can be serialized and deserialized using bincode.

Type Aliases§

BincodeReprFor
Type alias for the SerdeBincodeCompat::BincodeRepr associated type.