Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the rust source code download method in docs #30

Open
DavidBM opened this issue Apr 6, 2017 · 1 comment
Open

Update the rust source code download method in docs #30

DavidBM opened this issue Apr 6, 2017 · 1 comment

Comments

@DavidBM
Copy link

DavidBM commented Apr 6, 2017

Actually you can do with rustup rustup component add rust-src and then get the source path with rustc --print sysroot. The source code will be in: <toolchain root>/lib/rustlib/src/rust.

I think this way is more reliable for the user and the pluggin. Moreover, this allow to change version with rustup and update the source code automatically.

More information:
rust-lang/rustup#37 (comment)
racer-rust/racer#595

@DavidBM
Copy link
Author

DavidBM commented Apr 6, 2017

For now I'm using this in my .profile (ubuntu 16.10)

export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant