Upgrading strum 0.24 to 0.25
Breaking0.24.1 → 0.25.0Breaking2Platform1New1
BreakingUpgrade verdict
2 breaking changes and a platform requirement change.
In plain terms
- If an enum variant uses `default` to hold a value, converting it to a string now shows that value instead of the variant's name.
- Counting enum variants now skips any variant marked as disabled, matching how other methods behave.
- This version requires Rust 1.56 or newer because it now depends on syn 2.
Must act 3 items need code or config changes
What you must change
Breaking2
Changes
to_string behavior with default: display now returns the contained value's display version instead of the variant name.to_stringdisplaydefaultChanges
EnumCount to exclude variants that are disabled.EnumCountdisabledPlatform1
Upgrades syn dependency to version 2, which bumps the MSRV to 1.56.
syn