lencode-macros 0.1.1

support macros for lencode
Documentation

Derive macros for lencode encoding/decoding traits.

  • #[derive(Encode)] implements lencode::Encode by writing fields in declaration order and encoding enum discriminants compactly.
  • #[derive(Decode)] implements lencode::Decode to read the same layout.

For C‑like enums with an explicit #[repr(uN/iN)], the numeric value of the discriminant is preserved; otherwise, the variant index is used.