Skip to content

v3.2.0

Latest

Choose a tag to compare

@codama-releases codama-releases released this 30 Nov 13:06
· 1 commit to 3.x since this release
b43b1c8

Minor Changes

  • #176 f117505 Thanks @plutohan! - Honor custom variant discriminators when rendering enums. When any variant declares a discriminator, 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 8c7c2e8 Thanks @piliugin-anton! - Include num-traits in the synced Cargo.toml whenever num-derive is used, since the code derived by num-derive depends on it.