]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #41546 - cuviper:reduced-rust-src, r=alexcrichton
authorAriel Ben-Yehuda <arielb1@mail.tau.ac.il>
Wed, 26 Apr 2017 22:11:08 +0000 (22:11 +0000)
committerGitHub <noreply@github.com>
Wed, 26 Apr 2017 22:11:08 +0000 (22:11 +0000)
commit95c2f06162916b3fa0c65ad504cbc0da6bc9c8a3
treee7347121980c9811ba21cc2f2a2c6ac191e53e14
parentc6ff8326ecf6e069460f19442d78a935b7b3022a
parentb9bdb1766d68dbe5da0e0cd65b2227186004d2cf
Rollup merge of #41546 - cuviper:reduced-rust-src, r=alexcrichton

Shrink the rust-src component

Before this change, the installable rust-src component had essentially the same contents as the rustc-src dist tarball, just additionally wrapped in a rust-installer.  As discussed on [internals], rust-src is only meant to support uses for the standard library, so it doesn't really need the rest of the compiler sources.

Now rust-src only contains libstd and its path dependencies, which roughly matches the set of crates that have rust-analysis data.  The result is **significantly** smaller, from 36MB to 1.3MB compressed, and from 247MB to 8.5MB uncompressed.

[internals]: https://internals.rust-lang.org/t/minimizing-the-rust-src-component/5117
src/bootstrap/dist.rs