-
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 missing based on compiler version #10688
Comments
This is an issue with Cargo, but not one that's easy to fix. |
Thank you for explanation, one of the main reasons why I was not sure if it is related to cargo, or rustc was that cargo version is still 1.60, so I guess it did not get updated by rustup. |
btw we have #10623 for tracking improving the usability of the errors in this context |
🤔 interesting that githug did not find it, I guess this one can be closed then? |
Problem
but versions 0.18.0 and 0.18.1 existed at the time
Steps
Possible Solution(s)
I solved it by updating with rustup
nightly-i686-pc-windows-msvc updated - rustc 1.63.0-nightly (e6a4afc3a 2022-05-20) (from rustc 1.60.0-nightly (ee5d8d37b 2022-01-17))
Notes
I am not 100% sure if this is an cargo issue, because updating compiler did help, but I think that crate resolution trough
Cargo.toml
is part of cargo, and did not find any about missing crate version in either issues.I have no easy way to test it (deleting rust and downloading another version for 30 minutes is not a good option).
To be clear failing is not an issue, but the error message is. If the message would say that newer rustc version is required, instead of crate version not found it would be clear what is going on.
I found out about the upgrade by trying version 0.17 which by the error message exist, and have the change I wanted, and then compilation failed saying one of crates needs at least rustc 1.61, without that I would not even think about updating, because I did not see any interesting feature in the release notes. And after updating I tried if the version 0.18 did exist, and it did.
Please let me know if it is rustc bug, and I should report it there.
Version
The text was updated successfully, but these errors were encountered: