Expand description
Mediates between two implementations of the binary_sv2 protocol,
enabling encoding and decoding through serde or custom traits.
§Overview
Depending on the feature flags enabled, this crate will re-export implementations of the
Deserialize and Serialize traits either from the serde library or from a custom,
serde-free implementation provided by binary_codec_sv2 and derive_codec_sv2. This allows
for flexible integration of SV2 protocol types and binary serialization for environments that
may not support serde.
§Features
- with_serde: Enables
serde-based serialization and deserialization for SV2 types, usingserdeandserde_sv2. - core: Enables the custom
binary_codec_sv2andderive_codec_sv2implementations, which provideDeserializeandSerializetraits without the need forserde. - prop_test: Adds support for property testing for protocol types.
- with_buffer_pool: Enables support for buffer pooling to optimize memory usage during serialization and deserialization.
Re-exports§
pub use serde;
Modules§
Structs§
Enums§
Traits§
- Deserialize
- A data structure that can be deserialized from any data format supported by Serde.
- GetSize
- Serialize
- A data structure that can be serialized into any data format supported by Serde.
Functions§
- clone_
message - Does nothing and will be removed during refactor
- from_
bytes - to_
bytes - to_
writer - u256_
from_ int - Converts a value implementing the
Into<u64>trait into a customU256type.