Minor Changes
- #176
f117505Thanks @plutohan! - Honor custom variant discriminators when rendering enums. When any variant declares adiscriminator, the enum is rendered with#[repr(u8)],#[borsh(use_discriminant = true)]and an explicit value on every variant (omitted ones fall back to their position), so the generated Borsh layout matches the program instead of numbering variants from zero.
Patch Changes
- #87
8c7c2e8Thanks @piliugin-anton! - Includenum-traitsin the syncedCargo.tomlwhenevernum-deriveis used, since the code derived bynum-derivedepends on it.