Deku
Deku provides bit level serialization/deserialization proc-macros for structs
Under the hood, it uses bitvec as the "Reader" and “Writer”
Usage
[]
= "0.1"
Example
See examples
folder for more!
use *;
use TryFrom;
/// DekuTest Struct
// 0 1 2 3 4
// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
// | field_a | field_b |c| field_d | e | f |
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
//
// #[deku(endian = "little")] // By default it uses the system endianess, but can be overwritten