我在 Windows 上构建 Rust 程序时遇到问题。在我添加依赖项之前,一切都很好。添加依赖项后,我会尝试更新 crate 注册表。有任何想法吗?
cargo build --verbose
Updating registry `https://github.com/rust-lang/crates.io-index`
error Unable to update registry https://github.com/rust-lang/crates.io-index
Caused by:
[2/-1] Could not open '.cargo/registry/index/github.com-88ac128001ac3a9a/bi/tt/bittorrent' for writing: Access is denied.
最佳答案
您的防病毒软件可能会干扰操作。尝试暂时禁用您的防病毒软件,或在您的防病毒软件配置中为有问题的文件夹添加异常(exception)。
关于windows - cargo 登记更新总是失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36061005/