rust入坑01_Windows安装Rust

1、通过官方下载安装包,下载地址: 官方下载地址

2、运行cmd,并切换到下载目录

cd C:\download [这里根据实际下载目录]
C:\download> set RUSTUP_HOME=C:\Soft\Rust  [填实际安装路径]
C:\download> set CARGO_HOME=C:\Soft\Cargo  [填实际安装路径]
C:\download> rustup-init.exe

This path will then be added to your PATH environment variable by
modifying the HKEY_CURRENT_USER/Environment/PATH registry key.

You can uninstall at any time with rustup self uninstall and
these changes will be reverted.

Current installation options:


   default host triple: x86_64-pc-windows-msvc
     default toolchain: stable (default)
               profile: default
  modify PATH variable: yes

1) Proceed with standard installation (default - just press enter)
2) Customize installation
3) Cancel installation
>2  [选择自定义]

3、自定义选项

I'm going to ask you the value of each of these installation options.
You may simply press the Enter key to leave unchanged.

Default host triple? [x86_64-pc-windows-msvc]
[回车]

Default toolchain? (stable/beta/nightly/none) [stable]
[回车]

Profile (which tools and data to install)? (minimal/default/complete) [default]
complete [输入complete后回车]

Modify PATH variable? (Y/n)
Y [输入Y后回车]


Current installation options:


   default host triple: x86_64-pc-windows-msvc
     default toolchain: stable
               profile: complete
  modify PATH variable: yes

4、选择1,开始安装

1) Proceed with selected options (default - just press enter)
2) Customize installation
3) Cancel installation
>1 [输入1后回车]

info: profile set to 'complete'
info: setting default host triple to x86_64-pc-windows-msvc
warning: Updating existing toolchain, profile choice will be ignored
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
119.4 KiB / 818.4 KiB ( 15 %)  20.7 KiB/s in 20s ETA: 33s

5、等待后完成

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值