Very bad diagnostics when using a crate with the new dep:
syntax on older compiler versions
#10700
Labels
C-bug
Category: bug
dep:
syntax on older compiler versions
#10700
Problem
I released a new crate version with the following line: https://github.com/tweedegolf/nrf-modem-nal/blob/55730488496b2df99e42c4e34aa840c543951529/Cargo.toml#L24
This uses the new
dep:
syntax.We use this crate in a project with a
rust-toolchain.toml
that was set at 1.59.When updating the crate version in our project by changing the version from "0.1.0" to "0.1.1", the following error would be displayed:
It makes it look like the entire crate version doesn't exist.
Steps
dep:
syntaxPossible Solution(s)
I don't know if it's ever done to distribute a new cargo with an old compiler. If not, then there's not much that can be done probably.
There are two things that can be done to prevent this in the future:
Here's the crate index: https://github.com/rust-lang/crates.io-index/blob/master/nr/f-/nrf-modem-nal
As you can see, cargo should probably be able to parse that the version is there, but that it is likely that a newer version has to be used to use that version.
cargo.toml
when publishing a crateNotes
This happens on Windows and Linux, but probably on every platform
Version
The text was updated successfully, but these errors were encountered: