Skip to content

v0.1.2

Choose a tag to compare

@Phantomical Phantomical released this 26 Sep 01:37
· 13 commits to main since this release
87f8755

0.1.2 - 2023-09-25

Fixed

  • CEnum::variant_label (and thus the Debug impl) 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

Full Changelog: v0.1.1...v0.1.2