-
Notifications
You must be signed in to change notification settings - Fork 664
Closed
Labels
C-enhancement ✨Category: Adding new behavior or a change to the way an existing feature worksCategory: Adding new behavior or a change to the way an existing feature works
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
DenialAdams, chayleaf, slerpyyy, runiq, dob9601 and 19 more
Metadata
Metadata
Assignees
Labels
C-enhancement ✨Category: Adding new behavior or a change to the way an existing feature worksCategory: Adding new behavior or a change to the way an existing feature works