1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 23:42:07 +02:00
tldr/pages/common/cargo-remove.md
2023-10-29 09:54:53 +01:00

16 lines
441 B
Markdown

# 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}}`