- 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,從而加載最新的環境變量。——譯者注
安裝完成后,請花一點時間來確保它能夠正常運行。
推薦閱讀
- Python自然語言處理實戰:核心技術與算法
- Java虛擬機字節碼:從入門到實戰
- Effective Python Penetration Testing
- iOS應用逆向工程(第2版)
- Mastering Unity 2D Game Development(Second Edition)
- LabVIEW虛擬儀器入門與測控應用100例
- Statistical Application Development with R and Python(Second Edition)
- C# and .NET Core Test Driven Development
- Django實戰:Python Web典型模塊與項目開發
- Java EE架構設計與開發實踐
- Android編程權威指南(第4版)
- Java多線程并發體系實戰(微課視頻版)
- Learning TypeScript
- Isomorphic Go
- Enterprise Application Architecture with .NET Core