bitfields 2.0.6

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
10
11
use bitfields::bitflag;

#[bitflag(u8, foo = bar)]
enum Flags {
    #[base]
    Unknown = 0,
    A = 1,
}

fn main() {}