Closed
Description
Current Behavior
crates.io has an "Install" sections with copy-paste snippets to install the crate. It includes these two snippets:
cargo add crate-name
crate-name = "version"
For binary crates (e.g. ripgrep) this is not useful.
Expected Behavior
For crates that have a binary target, but not a library target, crates.io should show instead:
cargo install crate-name
For crates that have both a binary target and a library target, crates.io should all three:
cargo add crate-name
crate-name = "version"
cargo install crate-name
Steps To Reproduce
- Go to https://crates.io/crates/ripgrep
- Look at the page
Environment
- Browser: any
- OS: irrelevant
Anything else?
No response