Releases: Lut99/enum-debug
Releases · Lut99/enum-debug
v1.1.0 - License tags, removal of `proc-macro-error`
Added
license
-tags to the mainCargo.toml
file, also for theenum-debug-derive
-crate.
Fixed
- No longer using
proc-macro-error
to generate macro errors as it is no longer maintained. Relying onsyn
errors instead.
v1.0.0 - Long-needed fixes & Updates
IMPORTANT NOTICE: Now using the Apache 2.0 license. See LICENSE
for more details.
Added
EnumDebug::variant_names()
to get a static slice of all variant names.EnumDebug::variants()
to iterate over all variant names.
Changed
- The project now uses semantic versioning (BREAKING).
- The license has been changed from GPLv3 to Apache 2.0. See LICENSE for more information (BREAKING).
EnumDebug::fmt
->EnumDebug::variant_name()
, which returns the static variant name instead of formatting it (BREAKING).EnumDebug::fmt_type_name
->EnumDebug::type_name()
, which returns the static type name instead of formatting it (BREAKING).- Now depending on
syn
2.0 instead of 1.0. enum-debug
is now the toplevel crate instead of this being a purely virtual workspace.
Fixed
EnumDebug
derivation not working over enums with traits.EnumDebug
derivation not working over enums with no variants.
v0.2.0 - Default name change
Added
- An
enum_debug(path)
attribute that emulates the old behaviour to generate the full struct path as the name (see below).
Changed
- The default behaviour for enum name derivation to use
enum_debug(name)
.
Fixed
write!
andstringify!
calls being local to scope, causing crashes if overridden.
v0.1.0 - Initial Release
The initial release of the enum-debug
crate.