Code Monkey home page Code Monkey logo

Comments (13)

Peternator7 avatar Peternator7 commented on May 23, 2024 2

Fixed in 0.25.1. Thanks @smoelius

from strum.

uklotzde avatar uklotzde commented on May 23, 2024 1

Please do not yank!

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

from strum.

Peternator7 avatar Peternator7 commented on May 23, 2024 1

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.

from strum.

jessebraham avatar jessebraham commented on May 23, 2024 1

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.

from strum.

uklotzde avatar uklotzde commented on May 23, 2024

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

from strum.

martin-g avatar martin-g commented on May 23, 2024

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

from strum.

uklotzde avatar uklotzde commented on May 23, 2024

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

from strum.

Peternator7 avatar Peternator7 commented on May 23, 2024

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

from strum.

uklotzde avatar uklotzde commented on May 23, 2024

Still 0.25.0 on crates.io at this moment.

from strum.

uklotzde avatar uklotzde commented on May 23, 2024

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

from strum.

uklotzde avatar uklotzde commented on May 23, 2024

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

from strum.

Peternator7 avatar Peternator7 commented on May 23, 2024

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

from strum.

uklotzde avatar uklotzde commented on May 23, 2024

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.

from strum.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.