mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
26 lines
605 B
Plaintext
26 lines
605 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# cargo clean
|
|
|
|
> Remove generated artifacts in the `target` directory.
|
|
> More information: <https://doc.rust-lang.org/cargo/commands/cargo-clean.html>.
|
|
|
|
- Remove the entire `target` directory:
|
|
|
|
`cargo clean`
|
|
|
|
- Remove documentation artifacts (the `target/doc` directory):
|
|
|
|
`cargo clean --doc`
|
|
|
|
- Remove release artifacts (the `target/release` directory):
|
|
|
|
`cargo clean {{[-r|--release]}}`
|
|
|
|
- Remove artifacts in the directory of the given profile (in this case, `target/debug`):
|
|
|
|
`cargo clean --profile {{dev}}`
|