DEV Community

Cover image for [Rust Guide] 1.1 Install Rust
SomeB1oody
SomeB1oody

Posted on • Edited on • Originally published at someb1oody.github.io

[Rust Guide] 1.1 Install Rust

1.1.1 Installing from the Official Site

Go to the official Rust website, where you can change the language in the top-right corner.
Rust website homepage with language dropdown open
Click "Get Started" and you will see the following page:
Rustup install page with Windows 32-bit and 64-bit download buttons
Choose the download that matches your system: 32-BIT for 32-bit systems and 64-BIT for 64-bit systems. Most computers today are 64-bit. If you do not know whether your computer is 64-bit or 32-bit, and it is not an ancient machine, 64-bit will probably work.

If you want to install Rust on macOS, Linux, or the Windows Subsystem for Linux, run the following command in the terminal:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Open the downloaded installer and you will see a menu like the following:

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
>
Enter fullscreen mode Exit fullscreen mode

There are three options here:

  • Option 1 (default): standard installation
  • Option 2: custom installation, where you can choose the installation path, components, toolchain version, and more
  • Option 3: cancel installation

For most people, Option 1 is enough (either type 1 and press Enter, or just press Enter directly).

If you see output like the following, Rust has been installed successfully:

info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-docs'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: downloading component 'rustfmt'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-docs'
info: installing component 'rust-std'
info: installing component 'rustc'
info: installing component 'rustfmt'
info: default toolchain set to 'stable-x86_64-pc-windows-msvc'

  stable-x86_64-pc-windows-msvc installed - rustc 1.96.0 (ac68faa20 2026-05-25)

Rust is installed now. Great!

To get started you may need to restart your current shell.
This would reload its PATH environment variable to include
Cargo's bin directory (%USERPROFILE%\.cargo\bin).

Press the Enter key to continue.
Enter fullscreen mode Exit fullscreen mode

The installer will prompt you to restart your shell. Press Enter and the program will exit, and Rust will be installed.

1.1.2 Rust Command-Line Operations

Rust commands on Windows can be run in Terminal (it comes with Windows 11; if you do not have it, search for Windows Terminal in the Microsoft Store and install it).

  • Update Rust: rustup update
    Rust is a relatively new language and is updated very frequently, so it is recommended to run this from time to time to get the latest version.

  • Uninstall Rust: rustup self uninstall

  • Check the installation: rustc --version or rustc -V
    Output format: rustc x.y.z (xxxxxxxxx yyyy-mm-dd)

    • x.y.z indicates the version number
    • xxxxxxxxx indicates the hash of the current version
    • yyyy-mm-dd indicates the commit date of that version in that year

Example:

  $ rustc -V
  rustc 1.96.0 (ac68faa20 2026-05-25)
Enter fullscreen mode Exit fullscreen mode
  • Open the local Rust documentation manual: rustup doc

Development Tools

  • Install the Rust plugin for VS Code
  • VIM
  • Helix
  • RustRover
  • ...

Top comments (0)