[Pkg-rust-maintainers] Bug#846177: Bug#846177: A rustc-src package would be useful for racer completion

Dato Simó dato at debian.org
Sun Dec 11 20:55:46 UTC 2016


> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-rust-maintainers/attachments/20161211/b82dfb7a/attachment.html>


More information about the Pkg-rust-maintainers mailing list