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
9
use packbits as _;

#[packbits::pack(bytes = 1)]
struct Bad {
  #[bits(129)]
  a: u32,
}

fn main() {}