Where does multirust install Rust source code?

I installed the multirust version of the Rust programming language. I tried to configure the racer code completion package to specify Rust source code through the RUST_SRC_PATH environment RUST_SRC_PATH . However, I cannot find the location of the rust source files. When I type which rustc , I point to /usr/local/bin , probably because there is a symbolic link to the actual source directory or something like that. Any info on where the correct directory for the RUST_SRC_PATH variable for multirust ?

+6
source share
2 answers

Multirust does not currently set the source . It is also mentioned in the context of using a multi-arm racer .

Instead, follow the instructions in the RADER README :

Extract the Rust source code from git or download from https://www.rust-lang.org/install.html

+6
source

By default, rustup does not install the source code for the Rust standard library. But to install it, you can run the following command:

 $ rustup component add rust-src 

The source is set to ~/.rustup/toolchains/$TOOLCHAIN/lib/rustlib/src/rust/src/ (where $TOOLCHAIN is the name of the tool chain you are using).

+8
source

All Articles