You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the version numbers for dependencies need to be constrained to prevent cargo from picking a version with an incompatible MSRV. In this case clap_lex should be fixed to v0.3.0 since v0.3.1 bumped the MSRV to rust 1.64.0. There may be other incompatibilities... this is just the first error presented.
Debug Output
No response
The text was updated successfully, but these errors were encountered:
It looks like I'm able to build by adding the constraint described above to v4.0.32.
-clap_lex = { path = "./clap_lex", version = "0.3.0" }
+clap_lex = { path = "./clap_lex", version = "=0.3.0" }
however, I'm unable to create a pull request since there's no branch at that point in the repo. Would it be possible to tag a v4.0.33 with this change?
The way to solve this is for you to run cargo update -p clap_lex --precise 0.3.0. Newer versions of cargo should include that suggestion in the error.
Unfortunately, crates can only be responsible that they can build for the MSRV but should not be responsible for all of versions of dependencies to build for the MSRV
One way is for everyone to treat a change to MSRV as a breaking change but this is quite disruptive and leads to multiple copies of crates in dependency graphs
Another way is to use version constraints, as you mentioned, but this has repercussions on the ecosystem, for example
Please complete the following tasks
Rust Version
1.62.1
Clap Version
v4.0.32
Minimal reproducible code
N/A
Steps to reproduce the bug with the above code
Actual Behaviour
Expected Behaviour
Since the MSRV for clap v4.0.32 is rust 1.60.0 I expect to be able to compile with the 1.62.1 compiler.
Additional Context
It looks like the version numbers for dependencies need to be constrained to prevent cargo from picking a version with an incompatible MSRV. In this case clap_lex should be fixed to v0.3.0 since v0.3.1 bumped the MSRV to rust 1.64.0. There may be other incompatibilities... this is just the first error presented.
Debug Output
No response
The text was updated successfully, but these errors were encountered: