Rust REPL console
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 (Search Everywhere dialog (double Shift).
), run it from the main menu ( ), or look it up in the![REPL in the Search Everywhere dialog REPL in the Search Everywhere dialog](https://resources.jetbrains.com/help/img/idea/2024.1/ri_repl_searcheverywhere.png)
Find below an example of how the REPL console can be used to draft a simple program in Rust:
![Example of using Rust REPL](https://resources.jetbrains.com/help/img/idea/2024.1/rust_repl_example.png)
Last modified: 26 May 2024