boj*_*gle 17 rust rust-crates rust-cargo
当我运行时cargo build
,各种库存储在文件夹中/usr/local/lib/rustlib/
.
清除这些库的正确方法是什么?我可以rm
手动这些文件,但这是正确的做法吗?我注意到这/usr/local/lib/rustlib/manifest
是一个包含所有库的填充文件路径列表的文件,因此如果我手动删除这些文件可能会破坏某些内容.
Mic*_*ell 60
安装并运行cargo-cache以清除文件夹中的缓存~/.cargo
:
cargo install cargo-cache
cargo cache -a
Run Code Online (Sandbox Code Playgroud)