Can't find the "cargo-remove" crate

Hi, sorry for this terribly silly question, but I'm obsessed with the convenience of the "cargo add" command and the fact that there is no "cargo remove" troubles me deeply. The docs mention the remove subcommand:
https://doc.rust-lang.org/cargo/commands/cargo-remove.html
yet there is no trace of such crate in crates.io. Does someone know what happened with given crate or am I doomed to remove dependencies in a manual way?

cargo add and cargo remove are both built in to cargo now, you don't need a crate to do either

1 Like

Hmmm as I thought; I don't have it, therefore I'm gonna check whether something happened with my cargo installation (1.65.0) or if it got somehow removed in my specific version; might open an issue on github. Thanks! :smiley:

cargo remove was added in Rust 1.66.

You can also read the documentation for exactly your installed version, and discover that it doesn't exist there: https://doc.rust-lang.org/1.65.0/cargo/commands/

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.