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.
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.
note
If you are using WSL, make sure to configure the WSL toolchain for Rust.
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.
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.
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 No Rust toolchain configured notification](https://resources.jetbrains.com/help/img/idea/2024.3/rust_no_toolchain_notification.png)
Click Set up toolchain.
Alternatively, open IDE settings (CtrlAlt0S) and select Rust.
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.
Once the installation is complete, RustRover will automatically detect its location, populating the Toolchain version and Standard library paths.
Click OK to apply the settings.
You can install Rust independently, without the help of RustRover.
note
The minimal Rust version supported by RustRover is 1.64.0.
tip
We strongly recommend installing Rust via Rustup. You can find detailed instructions on the official website of the Rust Foundation.
Once installation is complete, go to Settings CtrlAlt0S | 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 Rust toolchain and standard library recognized in RustRover](https://resources.jetbrains.com/help/img/idea/2024.3/ri_toolchain_and_stdlibrary_recognized.png)
Follow the instructions below to install the WSL toolchain for Rust on Debian-based Linux distributions.
Install Rust on your WSL instance. You can find detailed instructions on the official website of the Rust Foundation.
In order to compile Rust, RustRover needs the build-essential package. Install it by running:
sudo apt-get install build-essential
Go to Settings CtrlAlt0S | Rust and check whether RustRover has detected the WSL toolchain location. If not, specify the path manually using the
\\wsl$
prefix.
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 New Rust version notification](https://resources.jetbrains.com/help/img/idea/2024.3/ri_update_rust_toolchain_notification.png)
Thanks for your feedback!