-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Generate "Cargo.lock" for old Rust compiler #13503
Comments
#12861 made the cargo lock version Does that satisfy the need? |
You're right, I went off the title. See also #5221 for the time traveling resolver. |
Note that this is available in nightly. Run |
If you really want to use an older lockfile version (which is rare and you normally won't do that), you can edit the topmost Since we already have |
Thank you for such a fast reply!
|
Are you running Debian? Generally, we recommend Debian's toolchain only be used for packaging of Debian packages and people should use rustup for their own development. |
Unfortunately, I don't have |
As far as I understand, the features mentioned in the comments do not cover the original idea of the current feature request.
IMHO, this is an extremely useful feature in many situations - from testing to development. Please reopen this feature request. |
The MSRV RFC opens with
So you can get this by either changing your MSRV or changing your toolchain. Is that sufficient? If not, could you expand on why? |
Frankly, I don't really understand what I need to do to compile my Rust project with the old (1.64.0) Rust toolkit. Am I understanding you correctly that this will be possible in the future (after/if the MSRV RFC will be merged into the master), but not for older Rust tools (eg 1.64.0, 1.72.0, etc.)? |
You will need to be running a newer toolchain to get access to the feature, yes. We generally recommend people develop with the latest toolchain so they get features like this, regardless of what version they do official testing and deployment with. |
Even if we added a |
Ok. I got your idea. Thank you very much for your help and tips! |
BTW, it would be nice and clear feature anyway. JFYI.
In other words, I tried but failed.
UPD.
|
The lockfile format version is different than the resolver algorithm version. #12861 (mentioned earlier) made the lockfile format version auto-selected by MSRV, rather than always "latest" for situations like this. |
Problem
I have a project written in Rust.
It was compiled without problems using the Rust compiler version "1.64.0".
At some point I decided to do:
As a result, the "Cargo.lock" file was updated and now I can't build the project:
Previous version of the "Cargo.lock" file wasn't saved.
Also I don't want (cannot) update my Rust compiler. It is written by 3rd-party vendor.
Is it possible to:
If yes, then how?
If no - that's the matter of the current feature request.
Proposed Solution
Notes
No response
The text was updated successfully, but these errors were encountered: