Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upOptionally download source code along with toolchain #37
Comments
jwilm
referenced this issue
Dec 16, 2015
Merged
[READY] Add support for the Rust programming language #268
This comment has been minimized.
This comment has been minimized.
|
Maybe it's a good idea even to download them by default. |
This comment has been minimized.
This comment has been minimized.
Not all developers use completion. |
This comment has been minimized.
This comment has been minimized.
Hm, I think that overwhelming majority uses at least hippie-expand or some alternative in their editor of choice. Not all developers setup semantic completion, but I think it is because hippie-expand works out of the box, and almost anything else requires some awkward setup to actually be useful. So I think your argument works backwards: if we download sources by default, completion setup becomes easier and more developers use it :) However I think that this may be not the best option here: see https://internals.rust-lang.org/t/what-do-you-think-about-publishing-libstd-on-crates-io/3227 |
This comment has been minimized.
This comment has been minimized.
I've never even heard of hippie-expand. |
This comment has been minimized.
This comment has been minimized.
In vim it is |
This comment has been minimized.
This comment has been minimized.
|
@brson I'd like to try to implement this unless libstd and related crates are uploaded to crates.io in the nearest future :) |
This comment has been minimized.
This comment has been minimized.
toothbrush7777777
commented
May 18, 2016
|
@matklad Any updates? |
This comment has been minimized.
This comment has been minimized.
|
@toothbrush7777777 no, unfortunately other things have happened :) At the same time the rust-lang/rfcs#1133 RFC looks like a better solution for the problem. The RFC, among other things, should allow cargo to download the source of stdlib. |
Diggsey
referenced this issue
May 31, 2016
Closed
Fetch rust sources when install toolchain. (for racer) #505
This comment has been minimized.
This comment has been minimized.
|
Prerequisite: rust-lang-deprecated/rust-buildbot#102 |
This comment has been minimized.
This comment has been minimized.
aka-demik
commented
Aug 19, 2016
|
rust-lang-deprecated/rust-buildbot#102 was merged. |
This comment has been minimized.
This comment has been minimized.
|
@aka-demik Yep, the next nightly will be the first to contain source packages. Then we can test #659 against those source packages and hopefully get it merged. I'm confident we'll be able to install source packages with the next release of rustup. |
This comment has been minimized.
This comment has been minimized.
|
So the good news is that the rustup support for adding components (eg. source packages) was merged. The bad news is that it uncovered a problem in the new |
This comment has been minimized.
This comment has been minimized.
jplatte
commented
Aug 26, 2016
|
I'll have to install racer via cargo it seems, as |
This comment has been minimized.
This comment has been minimized.
jplatte
commented
Aug 26, 2016
•
|
Okay, so installing things works... But I expected a more out-of-the-box experience. Right now on arch linux it's actually harder to set up racer with rust sources installed by rustup than setting it up by installing rust-src from the AUR, because with rustup the sources are now in a much more obscure path – I'll leave this here, in case someone on a different distribution wants to use the sources installed by rustup. It will set export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src" |
This comment has been minimized.
This comment has been minimized.
|
\o/ finally! @jplatte I've opened this issue: racer-rust/racer#595 which will make this zero setup. |
Diggsey
closed this
Aug 26, 2016
This comment has been minimized.
This comment has been minimized.
ariasuni
commented
Oct 7, 2016
|
Well, this doesn’t work very well for the Atom integration, which use either default |
This comment has been minimized.
This comment has been minimized.
WilsonGiese
commented
Oct 28, 2016
|
@ariasuni I got around this by creating a symlink. Added a little script in my bash profile to keep it updated as well:
Silly, but it works (: |
Grawp commentedDec 5, 2015
Rust sources comes handy when you are using racer or when you are cross-compiling etc...
It would be nice to have a possibility to download/upgrade rust sources along with the toolchain.