在使用cargo add 添加rand的时候(cargo add rand),报错:
Updating crates.io index
warning: spurious network error (3 tries remaining): [35] SSL connect error (Recv failure: Connection was reset)
warning: spurious network error (2 tries remaining): [35] SSL connect error (Recv failure: Connection was reset)
warning: spurious network error (1 tries remaining): [35] SSL connect error (Recv failure: Connection was reset)
error: download of config.json failed
Caused by:
failed to download from `https://index.crates.io/config.json`
Caused by:
[35] SSL connect error (Recv failure: Connection was reset)
可是在cmd中直接中鼠标点击https://index.crates.io/config.json时,浏览器可以直接下载该文件,请问下,这个如何解决,谢谢
1
共 1 条评论, 1 页
评论区
写评论通过config文件添加如下配置解决: