rustup

WSL安装Rust开发环境

五迷三道 提交于 2020-04-06 02:37:18
安装WSL 参考 WSL安装oh-my-zsh并配置插件 , 不再赘述. 安装Rust 执行 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rust.sh , 下载rust-init的安装脚本. 执行 vim rust.sh , 修改 RUSTUP_UPDATE_ROOT , 配置为如下华中科技大学的rust-init源. RUSTUP_UPDATE_ROOT="-https://mirrors.ustc.edu.cn/rust-static/rustup" 执行 sh rust.sh , 安装rust. 执行 echo "export RUSTUP_DIST_SERVER=https://mirrors.tuna.tsinghua.edu.cn/rustup" >> ~/.cargo/env , 配置清华大学rust组件下载源. 执行 vim ~/.cargo/config , 写入如下crates源, 将官方源替换为华中科技大学crates源. 执行 echo "source $HOME/.cargo/env >> $HOME/.zshrc" , 将 cargo 加入环境变量. [source.crates-io] registry = "https://github.com/rust-lang

window10 rust配置相关

两盒软妹~` 提交于 2020-02-26 23:44:52
visual studio buil tool安装 下载地址 某些python包也依赖这个 rust环境搭配步骤 新建环境变量CARGO_HOME 比如:E:\rust\cargo 新建环境变量RUSTUP_HOME 比如:E:\rust\rust 运行rustup_init.exe rust环境卸载 rustup self uninstall 来源: oschina 链接: https://my.oschina.net/youcodeme/blog/3160125

rustup搭建rust开发环境

安稳与你 提交于 2019-12-05 10:57:50
Linux修改环境变量 编辑$HOME下的.zshrc(如果使用的是bash则编辑.bashrc),添加以下环境变量 export RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static export RUSTUP_UPDATE_ROOT=https://mirrors.ustc.edu.cn/rust-static/rustup export CARGO_HOME=$HOME/.cargo export RUSTUP_HOME=$HOME/.rustup # 添加到Path export PATH=$CARGO_HOME/bin:$PATH 安装rustup curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh 运行rustup rustup install nightly 来源: https://my.oschina.net/u/2266513/blog/3133087

Windows下Rust开发环境配置

心已入冬 提交于 2019-12-04 06:12:42
1. 安装Rust 到 https://www.rust-lang.org/zh-CN/learn/get-started 找到rust的下载地址. 然后安装rustup-init.exe, 安装之后, rustc, cargo都安装好了. 2. 设置网络: 由于crate.io被屏蔽, 需要设置国内源. 或者通过代理访问. 设置方式为: 到.cargo文件夹下(通常在用户文件夹下), 找到config文件,然后输入 [source.crates-io] registry = "https://github.com/rust-lang/crates.io-index" replace-with = 'ustc' [source.ustc] registry = "git://mirrors.ustc.edu.cn/crates.io-index" 或者 [http] proxy = "[socks5://]server:<port>" 来源: https://my.oschina.net/somereasons/blog/3128344

Rustup says protocol “https” not supported or disabled in libcurl

泪湿孤枕 提交于 2019-12-01 19:50:11
I have been trying to use Rustup for a while now and it says this when I try to do anything with it: info: caused by: [1] Unsupported protocol (Protocol "https" not supported or disabled in libcurl) I know that cURL has HTTPS enabled — I just tried using it and it worked fine. korhadris Probably not what you want to hear, but they have known issues at the moment with ARM . This workaround seems to work for me: Directly download rustup-init from https://github.com/rust-lang-nursery/rustup.rs for your platform env RUSTUP_USE_HYPER=1 ./rustup-init It should also work to export RUSTUP_USE_HYPER=1

Rustup says protocol “https” not supported or disabled in libcurl

人走茶凉 提交于 2019-12-01 19:39:11
问题 I have been trying to use Rustup for a while now and it says this when I try to do anything with it: info: caused by: [1] Unsupported protocol (Protocol "https" not supported or disabled in libcurl) I know that cURL has HTTPS enabled — I just tried using it and it worked fine. 回答1: Probably not what you want to hear, but they have known issues at the moment with ARM. This workaround seems to work for me: Directly download rustup-init from https://github.com/rust-lang-nursery/rustup.rs for

Where does rustup install itself to?

拥有回忆 提交于 2019-12-01 18:59:20
I understand that rustup installs the rustc and cargo binaries to ~/.cargo/bin , but where does it install the rustup executable to? As far as I can tell this isn't explained in any documentation and running the installer doesn't tell you either. I'd like to avoid it being installed to anywhere except my home directory, if possible. I'm using macOS if that makes a difference. By default , rustup is also installed to your home directory: $ which rustup /Users/shep/.cargo/bin/rustup The documentation states : rustup installs rustc , cargo , rustup and other standard tools to Cargo's bin

Where does rustup install itself to?

孤者浪人 提交于 2019-12-01 17:37:22
问题 I understand that rustup installs the rustc and cargo binaries to ~/.cargo/bin , but where does it install the rustup executable to? As far as I can tell this isn't explained in any documentation and running the installer doesn't tell you either. I'd like to avoid it being installed to anywhere except my home directory, if possible. I'm using macOS if that makes a difference. 回答1: By default , rustup is also installed to your home directory: $ which rustup /Users/shep/.cargo/bin/rustup The