1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-15 00:35:50 +02:00
tldr/pages/common/cargo-clean.md
Managor d0a4ac3bc4
cargo*: add option placeholders and fix some syntax (#17270)
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2025-07-20 15:41:22 +00:00

512 B

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