Skip to content

Release 1.6.0 - #5

Merged
RenaudDenis merged 3 commits into
mainfrom
develop
Oct 28, 2026
Merged

RenaudDenis merged 3 commits into
mainfrom
develop

Conversation

@RenaudDenis

Copy link
Copy Markdown
Member

Version 1.6.0 (2026-10-28)

Added

  • Add a VALUES associated constant holding all unit variants in declaration order, usable in const contexts (e.g. const ALL: [Status; Status::len()] = Status::VALUES;)
  • Support #![no_std] crates: generated code only depends on core

Changed

  • name() now returns &'static str instead of a &str borrowed from self
  • values() iterates over VALUES instead of allocating a Vec

Fixed

  • Ignore repr hints that are not integer types, such as C: #[repr(C)] now uses i32 and #[repr(C, u8)] (or separate #[repr(C)] and #[repr(u8)] attributes) uses u8, instead of failing to compile
  • Use fully qualified paths in generated code so it compiles when names such as Option, Some, None, Iterator or stringify! are shadowed

Other

  • Remove the tool-specific agent instruction symlinks; AGENTS.md is now the only instruction file
  • Add tests/methods.rs and tests/hygiene.rs (a #![no_std] crate that shadows prelude names) and repr cases in tests/discriminants.rs

🤖 Generated with Claude Code

@RenaudDenis
RenaudDenis merged commit ee07b03 into main Oct 28, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant