cargo clean
Remove generated artifacts in the
targetdirectory. More information: https://doc.rust-lang.org/cargo/commands/cargo-clean.html.
- Remove the entire
targetdirectory:
cargo clean
- Remove documentation artifacts (the
target/docdirectory):
cargo clean --doc
- Remove release artifacts (the
target/releasedirectory):
cargo clean --release
- Remove artifacts in the directory of the given profile (in this case,
target/debug):
cargo clean --profile {{dev}}