> I'm becoming a big fan of racer, so I'm all for this! I haven't > looked at the internals however - I presume racer only needs the > source for std (and core) not the compiler itself?
Yes, I think you are correct: only libstd sources are needed, which are about 3 MiB. Two additional notes: 1. the _root_ location of the source SHOULD be ‘$prefix/lib/rustlib/src’ (this has been standardized by the Rust community, see [rust-buildbot#102]). In other words, the following file should exist after installing the package: /usr/lib/rustlib/src/rust/src/libstd/io/mod.rs Racer has already been updated to search the source there, in the absence of RUST_SRC_PATH (see [racer#598]). 2. If only libstd is included, perhaps the package should be named libstd-rust-src (for symmetry with libstd-rust-dev), instead of rust-src. Thanks for considering, d. [rust-buildbot#102] https://github.com/rust-lang/rust-buildbot/pull/102#issuecomment-222771857 [racer#598] https://github.com/phildawes/racer/pull/598