snippetbashTip
cargo remove — Remove dependencies from a Rust project's `Cargo.toml` manifest. More information: <https://doc.rust
Viewed 0 times
commandrustremovefromdependenciesclicargo removeproject
Problem
How to use the
cargo remove command: Remove dependencies from a Rust project's Cargo.toml manifest. More information: <https://doc.rust-lang.org/cargo/commands/cargo-remove.html>.Solution
cargo remove — Remove dependencies from a Rust project's Cargo.toml manifest. More information: <https://doc.rust-lang.org/cargo/commands/cargo-remove.html>.Remove a dependency from the current project:
cargo remove {{dependency}}Remove a development or build dependency:
cargo remove --{{dev|build}} {{dependency}}Remove a dependency of the given target platform:
cargo remove --target {{target}} {{dependency}}Code Snippets
Remove a dependency from the current project
cargo remove {{dependency}}Remove a development or build dependency
cargo remove --{{dev|build}} {{dependency}}Remove a dependency of the given target platform
cargo remove --target {{target}} {{dependency}}Context
tldr-pages: common/cargo remove
Revisions (0)
No revisions yet.