strum_macros breaking changes

cargo

4 curated breaking changes across major versions of strum_macros. Use this as a migration checklist before bumping dependencies.

4
changes
Breaking changes by transition
  • unknown \u2192 v0.26.1breaking

    The `EnumVariantNames` macro has been renamed `VariantNames`. The deprecation warning should steer you in the right direction for fixing the warning.

  • unknown \u2192 v0.26.1breaking

    The Iterator struct generated by EnumIter now has new bounds on it. This shouldn't break code unless you manually added the implementation in your code.

  • unknown \u2192 v0.26.1breaking

    `Display` now supports format strings using named fields in the enum variant. This should be a no-op for most code. However, if you were outputting a string like `"Hello {field}"`, this will now be interpretted as a format string.

  • unknown \u2192 v0.26.1breaking

    EnumDiscriminant now inherits the repr and discriminant values from your main enum. This makes the discriminant type closer to a mirror of the original and that's always the goal.

API access

Get this data programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/breaking/cargo/strum_macros
strum_macros breaking changes — Cargo migration guide | DepScope