asdf-community / asdf-community/asdf-rust

question - how to get stdlib sources for intellij?

Open
#18 8 comments 7 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
120
Forks
24
PR merge metrics
No merged PRs in 30d

Description

Hi, this is more of a question than a bug, I hope you don't mind me asking here.

I have installed rustc etc with this asdf plugin and that's all working great.

When I open the project I'm working on in IntelliJ (CLion) with the [IntelliJ Rust plugin](https://intellij-rust.github.io/) it can't find stdlib and asks for the location or `rustup`. Having looked around it seems this plugin only installs the tool binaries (which makes sense), so I don't currently have the sources it's looking for.

![Selection_029](https://user-images.githubusercontent.com/19378/152677942-e5612c84-306d-41f7-afd8-4a7027b62c74.png)

I haven't installed rustup as presumably that overlaps in purpose with asdf. I don't really want to mess up my asdf setup by using rustup so I'm not sure what to do.

---
Edit
I got this working as per https://stackoverflow.com/questions/41464063/how-to-provide-standard-library-sources-for-intellij-ideas-rust-project/63934669#63934669 by downloading and extracting the sources directly from the source code links at the bottom of https://forge.rust-lang.org/infra/other-installation-methods.html#source-code and telling IntelliJ where to find them:

![Settings_001](https://user-images.githubusercontent.com/19378/152692039-6703e038-b214-4228-89b5-f877be3533b7.png)

---
I guess ideally it'd be cool if this asdf plugin could also pull in the sources needed for intellij to behave.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the asdf-rust plugin's installation behavior and the Rust source-code installation links referenced in the issue. Determine how the plugin could provide sources that IntelliJ Rust can locate without rustup; done means a documented or automated setup supplies the required standard-library sources.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, shell
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.