Files
tldr/pages.zh/common/cargo-clean.md
Beriholic 33770df77d cargo*: add Chinese translation (#12312)
* cargo-*: add Chinese translation

---------

Co-authored-by: Jack Lin <blueskyson1401@gmail.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-03-14 10:25:45 +05:30

21 lines
488 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# cargo clean
> 删除 `target` 目录中生成的构建产物。
> 更多信息:<https://doc.rust-lang.org/cargo/commands/cargo-clean.html>.
- 删除整个 `target` 目录:
`cargo clean`
- 删除文档构建产物 (`target/doc` 目录)
`cargo clean --doc`
- 删除 release 模式的构建产物 (`target/release` 目录)
`cargo clean --release`
- 删除给定配置文件的目录中的构建产物(在本例中为 `target/debug`)
`cargo clean --profile {{dev}}`