1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/cargo-remove.md

17 lines
441 B
Markdown
Raw Normal View History

# cargo remove
2023-10-29 09:54:53 +01:00
> Remove dependencies from a Rust project's `Cargo.toml` manifest.
> More information: <https://doc.rust-lang.org/cargo/commands/cargo-remove.html>.
2023-10-29 09:54:53 +01:00
- Remove a dependency from the current project:
2023-10-29 09:54:53 +01:00
`cargo remove {{dependency}}`
2023-10-29 09:54:53 +01:00
- Remove a development or build dependency:
2023-10-29 09:54:53 +01:00
`cargo remove --{{dev|build}} {{dependency}}`
2023-10-29 09:54:53 +01:00
- Remove a dependency of the given target platform:
2023-10-29 09:54:53 +01:00
`cargo remove --target {{target}} {{dependency}}`