官术网_书友最值得收藏!

  • Rust游戲開發實戰
  • (美)赫伯特·沃爾弗森
  • 430字
  • 2024-09-05 16:34:10

1.1.3 完成安裝

RustUp安裝工具的屏幕輸出信息很冗長,它會確切地告訴使用者這個安裝程序將要做的事情:

Welcome to Rust!
 
This will download and install the official compiler for the Rust
programming language, and its package manager, Cargo.
 
RustUp metadata and toolchains will be installed into the RustUp
home directory, located at:
 
  C:\Users\herbe\.rustup
This can be modified with the RUSTUP_HOME environment variable.
 
The Cargo home directory located at:
 
  C:\Users\herbe\.cargo
 
This can be modified with the CARGO_HOME environment variable.
 
The cargo, rustc, rustup and other commands will be added to
Cargo's bin directory, located at:
 
  C:\Users\herbe\.cargo\bin
 
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.

You are then presented with installation options:

Current installation options:
  
  default host triple: x86_64-pc-windows-msvc
      default toolchain: stable (default)
                 profile: default
  modify PATH variable: yes
 
1) Proceed with installation (default)
2) Customize installation
3) Cancel installation

大多數情況下,用戶只需要輸入1然后按回車鍵即可。如果用戶需要修改Rust的安裝位置,則需要輸入2,然后按照屏幕上的提示去操作。值得注意的一點是,在自己的操作系統賬戶下安裝Rust并不需要系統管理員權限。

一旦進入真正的安裝環節,RustUp會下載若干個Rust包并把它們安裝在當前這臺計算機上。RustUp會修改path環境變量,如果打算在安裝完成后繼續使用當前的終端窗口,則最好把它重啟一次[2]。恭喜你!Rust已安裝完成,并可以使用了。


[2] 重新啟動Shell,從而加載最新的環境變量。——譯者注

安裝完成后,請花一點時間來確保它能夠正常運行。

主站蜘蛛池模板: 东阿县| 富蕴县| 桐庐县| 南阳市| 绿春县| 于都县| 景洪市| 延边| 绍兴市| 高淳县| 西城区| 云南省| 徐州市| 靖安县| 马山县| 信阳市| 东明县| 靖江市| 聂拉木县| 连江县| 乐至县| 阿城市| 伊通| 重庆市| 恩施市| 丹寨县| 贵溪市| 铁力市| 邢台市| 孝昌县| 吉林市| 化隆| 临沂市| 榆中县| 通道| 延长县| 板桥市| 栾川县| 米泉市| 翁牛特旗| 临澧县|