#INTELLIJ IDEA RUST CODE#
To everyone who has contributed code to IntelliJ Rust: we want to make this plugin officially supported by Jet Brains, but to do so, we need contributor license agreements signed by anyone who had added code to the plugin. Nonetheless, step into and local variables view more or less work :)Īs you can see on the screenshot, at the moment you unfortunately have to create a separate Cargo debug run configuration type (as opposed to the usual Run cargo command). Most importantly, rust debugger may (though in theory it should not) break C++ debugging. Note that this is super unstable, debugger can invoke any kind of undefined behavior, including, but not limited to, summoning of nasal daemons. It may work with CLion 2016.3.2 and intellij-rust 0. The current build can be download from TeamCity: Download. Old content 2Ĭurrently for technical reasons ( commit message) debugger is implemented as a separate plugin. If you use CLion and the nightly Cargo, you should be able to Debug Cargo configuration:Ī major missing piece is that we don't pass command line arguments to the debuggee yet (this requires some work on the Cargo side of things first). Or create Cargo Command run configurtion.setup gnu (Cygwin or MinGW) toolchains in CLion ( Preferences > Build, Execution, Deployment > Toolchains).
#INTELLIJ IDEA RUST INSTALL#
install gnu rust toolchain ( rustup install stable-gnu).Note, CLion doesn't support debugging with msvc toolchains, so if you are using Windows, you need: The debugger is officially available in CLion since 2018.1. If you are not sure where to start, consider the issues tagged with help wanted.
#INTELLIJ IDEA RUST HOW TO#
Check out CONTRIBUTING.md to learn how to set up the project and ARCHITECTURE.md to understand the high-level structure of the codebase. You're encouraged to contribute to the plugin if you've found any issues or missing functionality that you would want to see. If you are looking for the TOML plugin, see intellij-toml directory. P圜harm Professional and GoLand support debugging starting from 2021.1 TOML ** Requires the Native Debugging Support plugin. * IntelliJ IDEA Community Edition, P圜harm Community Edition, P圜harm Edu and IntelliJ IDEA Edu. WebStorm, PhpStorm, other commercial IDEs IntelliJ IDEA Ultimate, P圜harm Professional, GoLand (commercial) The plugin is compatible with all IntelliJ-based IDEs starting from the version 2020.3, with the following differences in the sets of the available features: You can find more details in the Quick Start Guide. For creating projects, use the Rust template.
To open an existing project, use File | Open and point to the directory containing Cargo.toml. If you want to jump straight in, open Settings > Plugins > Marketplace in your IDE, search for Rust and install the plugin. All new features are announced in the changelog. Available installation options and features are described on.