I am using IntelliJ's rust plugin (version 0.2.0.2114-182) with IDEA (2018.2.3).

There is a yellow bar at the top of my editor window that says "cannot attach stdlib sources automatically without rustup". This is not surprising since gentoo does not use rustup. It compiles rust from source.

There is an option to "attach manually", but I have no idea what directory it wants me to pick; or even what I should look for to figure out what the proper directory is; and I'm not even sure the gentoo ebuild created a directory with the necessary stdlib sources.

How can I provide the stdlib sources to the rust plugin in a way that is compatible with gentoo's package management system? It seems like answers to [How to provide standard library sources for IntelliJ IDEA's Rust project?](https://stackoverflow.com/questions/41464063/how-to-provide-standard-library-sources-for-intellij-ideas-rust-project) bypass gentoo's ebuilds and might cause the accumulation of cruft over time.