Serde Binary Advanced
Serde Binary Advanced is a Serde library enabling the serialization and deserialization of Rust objects to binary representations.
Features
- Serialization and deserialization of Rust data structures to and from binary format
- Full support for ASCII (through
lowlevel-types) and UTF-8 characters and strings - Support for Big Endian and Little Endian (default) encoding
- Comprehensive error reporting
- Compression of
usizemarkers for sequences and structures - Support for
u128andi128types - Enums and variants stored as
u32
Limitations
- No support foe serializing or deserializing sequences or maps of unknown length
Installation
Installation
Add this to your Cargo.toml:
[]
= { = "1", = ["derive"] }
= { = "1.0.0-beta.3" }
= { = "1.0.0-beta.3" }
Usage
Here's a quick example on how to use Serde Binary Advanced to serialize and deserialize a struct to and from binary:
use ;
use
#
Legal
Serde Binary Advanced is copyright © 2025 JEleniel and released under either The MIT License or The Apache License, at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you shall be licensed as above, without any additional terms or conditions.