This release adds support for const generics.
Bitfields can now use const generics directly. Just declare them on the struct as usual:
use bitfield_struct::bitfield;
#[bitfield(u16)]
#[derive(PartialEq, Eq)]
struct Packet<const VERSION: u8> {
#[bits(4)]
tag: u8,
#[bits(12)]
payload: u16,
}