Skip to content

Upgrading strum_macros 0.25 to 0.26

Breaking0.25.3 → 0.26.4Breaking4New11Changed2Fixed6Other7

BreakingUpgrade verdict

4 breaking changes.

  • The EnumVariantNames macro has been renamed VariantNames.
  • The Iterator struct generated by EnumIter now has new bounds on it.
  • Display now supports format strings using named fields in the enum variant.
  • EnumDiscriminant now inherits the repr and discriminant values from your main enum.
Top 3 of 4 that need code or config changes
Breaking4
The EnumVariantNames macro has been renamed VariantNames.
EnumVariantNamesVariantNames
The Iterator struct generated by EnumIter now has new bounds on it.
Display now supports format strings using named fields in the enum variant.
Display
EnumDiscriminant now inherits the repr and discriminant values from your main enum.