mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
22 lines
534 B
Plaintext
22 lines
534 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}`
|