All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
c_enum!
can now handle enums with more than 128 variants without hitting the macro recursion limit. Enums with more than 10k variants will still hit it eventually but this is less likely to be an issue for most.
c_enum!
will now emit the error message about multiple declarations in a block in most cases matching needing to be migrated to v0.2.0.
c_enum!
will now emit a custom error message indicating that declaring multiple enums in a singlec_enum!
block is not supported anymore.
c_enum!
now has some extra syntax to allow directly applying attributes to the generated impl block.
- It is now only possible to define a single enum instance within a
c_enum!
. This is to allow additional syntax in the future that is not supported when the macro allows multiple enum definitions.
CEnum::variant_label
(and thus theDebug
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).
- Trait implementations generated by the
c_enum!
macro are now annotated with#[automatically_derived]
.
- The
CEnum
trait has now been marked as#[doc(hidden)]
This is the very first release of c-enum
.
- The
c_enum!
macro.