简体   繁体   English

我怎样才能清理货物?

[英]How can I clean cargo stuff?

I tried to install Parity (an Ethereum client) on my CHIP computer (similar to a Raspberry Pi with 4GB memory). 我试图在我的CHIP计算机上安装Parity(一个以太坊客户端)(类似于带有4GB内存的Raspberry Pi)。 I cloned the repository and ran 我克隆了存储库并运行了

cargo build --release

After a while I noticed that about 40% of the memory was used and I stopped the installation process. 过了一会儿,我注意到大约有40%的内存被使用了,我停止了安装过程。 There was only 20% used before, so now I want to clean all of this Rust stuff. 之前只有20%使用过,所以现在我想清理所有这些Rust的东西。 How can I do that? 我怎样才能做到这一点?

Cargo places all temporary build files into the target/ directory. Cargo将所有临时构建文件放入target/目录中。 Sometimes, if not already present, Cargo also creates a Cargo.lock file. 有时,如果尚未出现,Cargo还会创建一个Cargo.lock文件。 The directory can be removed by executing: 可以通过执行以下命令删除目录:

cargo clean

Cargo also saves the package index and the source code of dependencies globally in ~/.cargo/registry/ . Cargo还在~/.cargo/registry/全局保存包索引和依赖源代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM