Last active
November 12, 2023 18:33
-
-
Save allolex/6705f3802dfb3a0032f167833d49aa2a to your computer and use it in GitHub Desktop.
Revisions
-
allolex revised this gist
Nov 12, 2023 . No changes.There are no files selected for viewing
-
allolex revised this gist
Nov 12, 2023 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,16 +8,16 @@ JetBrains has a new Rust IDE, but I don't want to pay for the license, so I am u 2. After you have done that, set `.tool-versions` with that version: - `asdf local rust latest` 3. Install the rust standard library: - `rustup component-add rust-src` 4. Download the appropriate version of the deprecated rust plugin: - Downloads: https://plugins.jetbrains.com/plugin/8182--deprecated-rust/versions/stable - Documentation: https://plugins.jetbrains.com/plugin/8182--deprecated-rust/docs/rust-project-settings.html 5. 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. 6. Follow JetBrains' documentation to install the plugin. 7. 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 -
allolex created this gist
Nov 12, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ # asdf, rust, and JetBrains CLion IDE. 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. 1. Install rust using asdf in the usual way. - `asdf install rust latest` - That's currently 1.7.3 for me right now. 2. After you have done that, set `.tool-versions` with that version: - `asdf local rust latest` 3. Install the rust standard library: - rustup component-add rust-src 4. Download the appropriate version of the deprecated rust plugin: - Downloads: https://plugins.jetbrains.com/plugin/8182--deprecated-rust/versions/stable - Documentation: https://plugins.jetbrains.com/plugin/8182--deprecated-rust/docs/rust-project-settings.html#general-settings 5. 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. 6. Follow JetBrains' documentation to install the plugin. 7. Go to the plugin configuration dialog and - 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