mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-17 02:00:31 +00:00
Update cheatsheets
This commit is contained in:
25
cargo-clean
Normal file
25
cargo-clean
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
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 --release`
|
||||
|
||||
- Remove artifacts in the directory of the given profile (in this case, `target/debug`):
|
||||
|
||||
`cargo clean --profile {{dev}}`
|
||||
Reference in New Issue
Block a user