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、等待后完成
1万+

被折叠的 条评论
为什么被折叠?



