crates
crates copied to clipboard
Wrong version reported when renaming crates
Describe the bug
It is possible to use the package field to rename a crate. Here is an example:
[dependencies.cairo]
package = "cairo-sys-rs"
git = "https://github.com/gtk-rs/gtk-rs-core"
version = "0.16"
The crate's name is cairo-sys-rs and the current version is 0.15.1. However the extensions searches for the version of the crate "cairo" instead. In this case that crate exists and the extension reports the version to be 0.0.4 but that is the most recent version of the wrong crate.
To Reproduce Steps to reproduce the behavior:
- Add the above mentioned snippet to the
Cargo.tomlfile - Observe the version numbers
- Compare it with the correct version number on https://crates.io/crates/cairo-sys-rs
Expected behavior The displayed version should have been 0.15.1
Screenshots

Desktop (please complete the following information):
- OS: Arch Linux
I also meet this prolem.

but
