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-clean.md
Lena ffab1fa468
cargo-{clean,fmt}: add page (#10770)
* cargo clean: add page

* cargo fmt: add page
2023-10-01 16:47:34 +08:00

503 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 --release

  • Remove artifacts in the directory of the given profile (in this case, target/debug):

cargo clean --profile {{dev}}