RustRover 2024.3 Help

Rust toolchain and standard library

To develop in Rust, you need several basic tools: a compiler, a package manager, a formatter, and so on. A set of these tools is referred to as a toolchain. You will also need the Rust Standard Library.

Install Rust

You can provide the toolchain and standard library yourself, or let RustRover install them for you in one click – from the New Project wizard or through IDE settings.

Install toolchain and standard library from the New Project wizard

When you create a new Rust project, RustRover checks whether the Rust toolchain and standard library are installed.

  • If the Rust toolchain is not detected, Toolchain version will display N/A. Click the Install Rustup button – RustRover will attempt to install both the toolchain and the standard library using Rustup.

    No Rust toolchain configured notification

    Once the installation is complete, RustRover will automatically detect its location, populating the Toolchain version and Standard library paths.

  • If the Rust toolchain is detected but the standard library is not, click the Download via Rustup button and wait for the installation to complete.

    Rust standard library not found notification

Install Rust toolchain from IDE settings

If you have already opened a project and the Rust toolchain is missing, you will see a notification banner right above the editor:

No Rust toolchain configured notification
  1. Click Set up toolchain.

    Alternatively, open IDE settings (Ctrl+Alt+S) and select Rust.

  2. If the Rust toolchain is not detected, Toolchain version will display N/A. Click the Install Rustup button – RustRover will attempt to install both the toolchain and the standard library using Rustup.

    Rust toolchain settings
  3. Once the installation is complete, RustRover will automatically detect its location, populating the Toolchain version and Standard library paths.

  4. Click OK to apply the settings.

Install Rust on your own

You can install Rust independently, without the help of RustRover.

Once installation is complete, go to Settings Ctrl+Alt+S | Rust and check that RustRover has recognized the installed toolchain and standard library. If not, specify the necessary paths manually.

Rust toolchain and standard library recognized in RustRover

    WSL toolchain

    Follow the instructions below to install the WSL toolchain for Rust on Debian-based Linux distributions.

    1. Install Rust on your WSL instance. You can find detailed instructions on the official website of the Rust Foundation.

    2. In order to compile Rust, RustRover needs the build-essential package. Install it by running:

      sudo apt-get install build-essential
    3. Go to Settings Ctrl+Alt+S | Rust and check whether RustRover has detected the WSL toolchain location. If not, specify the path manually using the \\wsl$ prefix.

      Rust toolchain settings

    Update Rust

    If you're using a stable or beta version of Rust, RustRover will let you know about available updates. The notification will suggest to run the rustup update command:

    New Rust version notification
    Last modified: 30 January 2025