ace-macros
Proc-macro crate. Provides #[derive(FrameCodec)] which generates FrameRead and FrameWrite impls for structs and enums.
Field attributes:
#[frame(id = 0xNN)]— discriminant for unit and newtype enum variants#[frame(id_pat = "...")]— pattern for catchall variants carrying a rawu8#[frame(length = expr)]— fixed byte count for slice fields#[frame(read_all)]— consume all remaining bytes (trailing&[u8]fields)#[frame(skip)]— exclude from encode/decode, initialise withDefault