<html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title></title>
<meta name="generator" content="Org mode" />
</head>
<body>
<div id="content" style="max-width: 34em">
<blockquote style="margin: 1.2em 0;border-left: 4px solid #DDD;padding: 0 1em;color: #777;quotes: none">
<p style="margin: 0 0 1.2em 0 !important">
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?
</p>
</blockquote>

<p style="margin: 0 0 1.2em 0 !important">
Yes, I think you are correct: only libstd sources are needed,
which are about 3 MiB.
</p>

<p style="margin: 0 0 1.2em 0 !important">
Two additional notes:
</p>

<ol class="org-ol" style="margin: 1.2em 0;padding-left: 2em">
<li style="margin: 0.5em 0"><p style="margin: 0.5em 0 !important">
the <i>root</i> location of the source SHOULD be
<tt style="font-family: Consolas, Inconsolata, monospace">$prefix/lib/rustlib/src</tt> (this has been standardized
by the Rust community, see <a href="https://github.com/rust-lang/rust-buildbot/pull/102#issuecomment-222771857">rust-buildbot#102</a>).
</p>

<p style="margin: 0.5em 0 !important">
In other words, the following file should exist after
installing the package:
</p>

<pre class="example" style="font-family: Consolas, Inconsolata, monospace;margin: 1.2em 0 1.2em 1.2em;font-size: 95%;line-height: 1.3em;padding: 0.2em 0.5em;overflow: visible">
/usr/lib/rustlib/src/rust/src/libstd/io/mod.rs
</pre>

<p style="margin: 0.5em 0 !important">
Racer has already been updated to search the source there,
in the absence of RUST_SRC_PATH (see <a href="https://github.com/phildawes/racer/pull/598">racer#598</a>).
</p></li>

<li style="margin: 0.5em 0">If only libstd is included, perhaps the package should be
named libstd-rust-src (for symmetry with libstd-rust-dev),
instead of rust-src.</li>
</ol>

<p style="margin: 0 0 1.2em 0 !important">
Thanks for considering,
</p>

<p style="margin: 0 0 1.2em 0 !important">
d.
</p>
</div>
</body>
</html>