v0.1.2
0.1.2 - 2023-09-25
Fixed
CEnum::variant_label(and thus theDebugimpl) now returns the actual
variant label instead of the enum name. (by @dbartussek)- Variant values are now assigned as described in the documentation. Previously,
variant values were assigned incorrectly (mostly to 0).
Changed
- Trait implementations generated by the
c_enum!macro are now annotated with
#[automatically_derived].
What's Changed
- variant_label returned the enum name instead of variant name by @dbartussek in #1
- Add test cases verifying that variant_label works as expected by @Phantomical in #2
- Make variants without explicit values properly follow C enum rules by @Phantomical in #3
- Annotate generated trait impls with #[automatically_derived] by @Phantomical in #4
- Mark the example module with #[cfg(doc)] on docs.rs by @Phantomical in #5
- v0.1.2 by @Phantomical in #6
New Contributors
- @dbartussek made their first contribution in #1
- @Phantomical made their first contribution in #2
Full Changelog: v0.1.1...v0.1.2