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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM