Quick start

Bold text denotes the names of actions you can type in the Find Action dialog (Ctrl+Shift+A or quickly press Shift twice for Find Anything). Shortcuts are given for the default Windows/Linux keymap. To learn shortcuts for your keymap consult Help > Keymap reference. Shortcut for an action is also displayed in the Find Action dialog.

Getting Rust and IntelliJ IDEA

You can use any JetBrains IDE to develop Rust. If you are not sure which one to choose, download IntelliJ IDEA community edition, it’s free. Install the plugin via Settings > Plugins > Install JetBrains plugin menu.

It’s most convenient to use rustup.rs to install Rust. Using your operating system’s package manager will work as well, but you will need to download sources of the standard library manually.

Create new project...

After you have installed the plugin you can create new project.

idea-new-project

Select Rust project type.

idea-select-project-type

And specify a project name and location.

idea-project-location

If you are using other IDE (CLion, PyCharm, etc.) you will see slightly different interface while creating a new project.

clion-new-project

And then select Rust project type and specify project location.

clion-project-location

...or open existing one

You can also import existing project from source.

idea-import

Select the directory with the project. The directory must contain a Cargo.toml file.

select-directory

Use from existing sources import.

from-sources

Check that the directory is recognized as a Rust project:

rust-source

Select a Rust toolchain. It’s OK if there is no rustup.

import-toolchain-step

To import project in other IDEs just use open option.

clion-import

And select project directory.

If you want to check if the project is imported successfully, or to link additional Cargo projects to an exitising IDE project, you could use Cargo toolwindow:

cargo-toolwindow

After your project is ready...

Check that the basic functionality is working. Try Goto Symbol Ctrl+Alt+Shift+N, Goto Declaration Ctrl+B and completion Ctrl+Space.