Summary:
Section titled “Summary:”How to install Rust on Windows
Who is this KB written for?:
Section titled “Who is this KB written for?:”Service Desk
When should this KB be referenced?:
Section titled “When should this KB be referenced?:”When a request is made to install Rust
Windows
Section titled “Windows”1. Download and Run the Installer
Section titled “1. Download and Run the Installer”-
Click the button “Download rustup-init.exe” (or “Install” button).
-
Save the
rustup-init.exefile.
2. Run rustup-init.exe
Section titled “2. Run rustup-init.exe”-
Double-click the downloaded file to run it.
-
A command prompt window will appear.
3. Follow the prompts
Section titled “3. Follow the prompts”- Press 1 to proceed with the default installation (recommended).
4. Add Rust to your PATH (if needed)
Section titled “4. Add Rust to your PATH (if needed)”- The installer typically does this for you. If not, follow its instructions to add Rust’s
binfolder (usuallyC:\Users\YourName\.cargo\bin) to your system’sPATH.
5. Restart your Command Prompt
Section titled “5. Restart your Command Prompt”- Close and re-open any Command Prompt or PowerShell windows to update your PATH.
6. Verify the installation
Section titled “6. Verify the installation”-
Open a new Command Prompt and run:
cmd
Copy code
rustc --version