Skip to content

v1.0.0 - Long-needed fixes & Updates

Choose a tag to compare

@Lut99 Lut99 released this 22 Jul 22:11
· 3 commits to main since this release

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.