packbits 0.1.1

Tiny, zero-boilerplate bit packing for your own structs: convert to/from fixed-size byte arrays and integer containers with one attribute.
Documentation
1
2
3
4
5
6
7
8
use packbits as _;

#[packbits::pack(b = 1)]
struct Bad {
  a: u8,
}

fn main() {}