Rust: Couldn't resolve host name (Could not resolve host: crates

使用 nightly 版本时,Crates 源可能会出现 Couldn't resolve host name (Could not resolve host: crates) 错误(见 https://github.com/ustclug/discussions/issues/294)。

 

一个临时的解决方法是在运行 cargo 的时候加入环境变量 CARGO_HTTP_MULTIPLEXING=false

 

source: https://mirrors.ustc.edu.cn/help/crates.io-index.html

posted @ 2020-09-07 11:35  GreatK  阅读(1963)  评论(0编辑  收藏  举报