使用 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