Display yank reason once you can provide one via cargo #1153
Labels
A-frontend 🐹
C-enhancement ✨
Category: Adding new behavior or a change to the way an existing feature works
I learned about
rustfmt
today and learned that it has cargo integration to enablecargo fmt
. I searched cargo from the command line and got this output:Ah ha!
cargo-fmt
is what I want, right? RIGHT?That's odd, it just showed up in the search!
I resort to the browser: https://crates.io/crates/cargo-fmt
Yanked. I think what I want is
rustfmt
. I installed it, and sure enough:I think my confusion could be avoided by:
cargo search
results that a package has been yanked. Maybe by highlighting the name in an ANSI color and outputting a colored message at the bottom that says something like "Packages in yellow have been yanked and are not directly installable. See https://somewhere.else for more information."cargo-fmt
have some kind of text explaining why it was yanked and perhaps suggesting a next step (e.g. "PackageX
has superseded this package" or "This package was erroneously published" or something like that).That second one is probably the task for crates.io to tackle, although searching through the cargo repo for "yanked" shows that I'm not the first person to encounter a problem like this:
I think I'm going to file a similar issue with cargo since there's potentially work to be done there, too.
The text was updated successfully, but these errors were encountered: