github codama-idl/renderers-rust v3.2.0

3 hours ago

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.

Don't miss a new renderers-rust release

NewReleases is sending notifications on new releases.