Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

derive(FromRepr) broken in 0.25.0 #275

Closed
uklotzde opened this issue Jun 19, 2023 · 13 comments · Fixed by #276
Closed

derive(FromRepr) broken in 0.25.0 #275

uklotzde opened this issue Jun 19, 2023 · 13 comments · Fixed by #276

Comments

@uklotzde
Copy link

image

Worked flawlessly with 0.24.1

@uklotzde
Copy link
Author

I suggest to yank v0.25.0 until the issues with doc comments are resolved.

@martin-g
Copy link

Please do not yank!
These will lead to many broken projects which do not use this functionality.
Better fix it and release 0.25.1

@uklotzde
Copy link
Author

Please do not yank!

Agreed. I didn't consider that the derive macros are a separate feature.

@Peternator7
Copy link
Owner

Like Martin said, we can't really rollback, 0.25 already had 10,000 downloads so people have already updated, and this would break them.

Pinning to 0.24 is definitely the correct solution for affected users until a patch fix is released.

@Peternator7
Copy link
Owner

Fixed in 0.25.1. Thanks @smoelius

@uklotzde
Copy link
Author

uklotzde commented Jul 4, 2023

Please consider releasing the bugfix soon. Versions are cheap and not a scarce resource.

@Peternator7
Copy link
Owner

I released it yesterday. You might need to run cargo update to pick up the patch version if you pinned to 0.25.

@uklotzde
Copy link
Author

uklotzde commented Jul 4, 2023

Still 0.25.0 on crates.io at this moment.

@uklotzde
Copy link
Author

uklotzde commented Jul 4, 2023

The corresponding Git tags are also missing. I suggest to tag each release to ensure traceability.

@uklotzde
Copy link
Author

uklotzde commented Jul 4, 2023

The main crate is still at 0.25.0 and pulls strum_macros 0.25.0. That doesn't fix the issue.

@jessebraham
Copy link

The issue is resolved, even though strum lists the required version of strum_macros as 0.25.0 it will still pull in any subsequent patch releases, as this is all semver compatible.

If you're still having build issues you need to try to clean and update first. I was experiencing this FromRepr issue in a few projects and simply running cargo update prior to re-building has fixed it in all of them.

@Peternator7
Copy link
Owner

There's 2 packages, strum and strum_macros; since this bug only affected codegen, only strum_macros needed a new version

@uklotzde
Copy link
Author

uklotzde commented Jul 4, 2023

Thanks for the clarification. It is confusing that it suddenly works even though the main crate is still at 0.25.0. Beforehand I always needed to downgrade it manually from 0.25.0 to 0.24.1 after running cargo upgrade --incompatible. If the Cargo.lock file is not part of the repo you don't notice this change behind the scenes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants