JetBrains has a new Rust IDE, but I don't want to pay for the license, so I am using a fallback version of CLion. That means my IDE is vintage 2022.
- Install rust using asdf in the usual way.
asdf install rust latest
- That's currently 1.7.3 for me right now.
- After you have done that, set
.tool-versions
with that version:asdf local rust latest
- Install the rust standard library:
rustup component-add rust-src
- Download the appropriate version of the deprecated rust plugin:
- Scroll down until you find the latest version of the plugin that will work with your IDE.
- Mine was the last one of 2022.
- When I downloaded the plugin in Safari, for some reason it decided to decompress the plugin .zip file.
- Download the plugin in Chrome to avoid this since JetBrains looks at the filename for the version information.
- Follow JetBrains' documentation to install the plugin.
- Go to the plugin configuration dialog and enter the appropriate locations for your version of rust. “~” below will need to be expanded to the path of your home folder.
- Toolchain location: ~/.asdf/installs/rust/1.73.0/toolchains/1.73.0-aarch64-apple-darwin/bin
- Standard library: ~/.asdf/installs/rust/1.73.0/toolchains/1.73.0-aarch64-apple-darwin/lib/rustlib/src/rust/library