Skip to content
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

Hint at package name with dash/underscore mismatch #3925

Closed
jethrogb opened this issue Apr 14, 2017 · 3 comments
Closed

Hint at package name with dash/underscore mismatch #3925

jethrogb opened this issue Apr 14, 2017 · 3 comments
Labels
A-diagnostics Area: Error and warning messages generated by Cargo itself.

Comments

@jethrogb
Copy link
Contributor

Say you have this in your Cargo.toml

[dependencies]
rustc_serialize = "*"

You'll get this error:

error: no matching package named `rustc_serialize` found (required by `my_crate`)
location searched: registry https://github.com/rust-lang/crates.io-index
version required: *

It would be nice if cargo instead said something like “did you mean rustc-serialize”?

@alexcrichton alexcrichton added the A-diagnostics Area: Error and warning messages generated by Cargo itself. label Apr 19, 2017
@alexcrichton
Copy link
Member

Agreed! Would be an awesome improvement to have.

@kellda
Copy link
Contributor

kellda commented Jun 6, 2020

It seems fixed now:

error: no matching package named `rustc_serialize` found
location searched: registry `https://github.com/rust-lang/crates.io-index`
perhaps you meant: rustc-serialize
required by package `my_crate v0.1.0 (/path/to/my_crate)`

@Eh2406
Copy link
Contributor

Eh2406 commented Jun 6, 2020

Yes. Thanks!

@Eh2406 Eh2406 closed this as completed Jun 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Error and warning messages generated by Cargo itself.
Projects
None yet
Development

No branches or pull requests

4 participants