RustRover
 
2023.3
Get RustRover
Because RustRover 2023.3 is still in development, this documentation may not be entirely accurate and is subject to change.

Rust REPL console

Last modified: 08 April 2024

REPL console is an interactive read-eval-print-loop environment for prototyping and testing your Rust code. This handy tool is a notebook, a calculator, and a Rust interpreter all in one.

Implemented on top of the evcxr_repl utility, Rust REPL provides syntax highlighting and completion for the code lines you type. It also shows a pane with the list of variables, functions, and structures currently in use.

You can access the REPL console from the context menu (Rust | Rust REPL), run it from the main menu (Tools | Rust | Rust REPL), or look it up in the Search Everywhere dialog (double Shift).

REPL in the Search Everywhere dialog

Find below an example of how the REPL console can be used to draft a simple program in Rust:

https://resources.jetbrains.com/help/img/idea/2023.3/rust_repl_example.png
Gif