Skip to content

Releases: Lut99/enum-debug

v1.1.0 - License tags, removal of `proc-macro-error`

08 Oct 14:00
Compare
Choose a tag to compare

Added

  • license-tags to the main Cargo.toml file, also for the enum-debug-derive-crate.

Fixed

  • No longer using proc-macro-error to generate macro errors as it is no longer maintained. Relying on syn errors instead.

v1.0.0 - Long-needed fixes & Updates

22 Jul 22:11
Compare
Choose a tag to compare

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

21 Jan 08:21
Compare
Choose a tag to compare

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! and stringify! calls being local to scope, causing crashes if overridden.

v0.1.0 - Initial Release

10 Dec 13:51
Compare
Choose a tag to compare

The initial release of the enum-debug crate.