win10环境修改或增加文件C:\Users<username>.cargo\config:
[source.crates-io]
replace-with = 'tuna'
[source.tuna]
registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"
cargo build时若一直出现 Blocking waiting for file lock on package cache
, 可以删除C:\Users\<username>\.cargo\
目录下的 .package-cache
,然后重试。