-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
crate version mismatch between cargo.toml and cargo.lock #12129
Comments
cargo uses maximal compatible versions by default, rather than minimal compatible versions. #8539 is for supporting minimal versions. #9930 is for making the resolver MSRV-aware (hopefully by default) I believe those capture the concerns mentioned in this issue, so I'm closing in favor of those. If there is something I missed, let us know! |
what can i do to strictly generate the binary with exact versions of dependencies i specified in cargo.toml? |
Tracking |
@weihanglo. yes i am not checking in cargo.lock file. i think that's what caused the issue. |
Problem
When i am running
cargo build --release
in one of my projects. Cargo is downloading and compiling latest versions of crates mentioned in cargo.toml instead of the version i specified. so some of the latest crates which are getting downloaded have a msrv of 1.65 but i am using 1.64 because of which i am not able to compile my code and generate a binary. i haven't changes anything in my code recently. i am unable to find the cause behind this behaviour. Any help would be much appreciated!!.Steps
No response
Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: