bitfields 2.0.2

Macro for for generating bitfields from structs and enum bitflags for defining packed binary schemas in low-level systems (e.g. embedded development or emulators)
Documentation
1
2
3
4
5
6
7
8
9
use bitfields::bitfield;

#[bitfield(u32, deez = what)]
pub struct Bitfield {
    #[bits(default = 0x12)]
    a: u32,
}

fn main() {}