在从教程中尝试一个示例(猜数字游戏)时,在定义依赖项后(rand="0.3.0"
),我遇到了这个问题:
$ cargo build --verbose
Updating registry `https://github.com/rust-lang/crates.io-index`
Unable to update registry https://github.com/rust-lang/crates.io-index
Caused by:
failed to fetch `https://github.com/rust-lang/crates.io-index`
Caused by:
[16] The SSL certificate is invalid
我将此添加到货物注册git仓库中,但没有成功:
[http]
sslVerify = false
在哪里挖掘?