27 releases

0.5.11 Aug 23, 2025
0.5.9 Jun 27, 2025
0.5.4 Sep 26, 2024
0.5.2 May 19, 2024
0.4.0 Nov 6, 2022

#92 in Programming languages

Download history 12090/week @ 2025-10-12 12273/week @ 2025-10-19 12704/week @ 2025-10-26 14348/week @ 2025-11-02 10295/week @ 2025-11-09 11539/week @ 2025-11-16 14442/week @ 2025-11-23 13504/week @ 2025-11-30 10716/week @ 2025-12-07 9770/week @ 2025-12-14 7978/week @ 2025-12-21 8622/week @ 2025-12-28 11798/week @ 2026-01-04 10898/week @ 2026-01-11 12246/week @ 2026-01-18 11881/week @ 2026-01-25

48,252 downloads per month
Used in 7 crates (5 directly)

MIT/Apache

30KB
493 lines

Offers an easy way to build a rustc sysroot from source.


rustc-build-sysroot

This crate offers the ability to build a rustc sysroot from source. You can think of it as a very lightweight version of xargo (which was a useful source for information on how to do this), or a version of cargo -Zbuild-std that builds a sysroot rather than building the standard library for the current crate.

Building the sysroot from source is useful for tools like Miri and cargo-careful that need the standard library to be built with different flags. Building a sysroot from different sources is not a goal of this crate.

The crate builds on stable Rust, but actually building a sysroot requires a recent nightly version. Nightly versions from the last 3 months are supported.

Dependencies

~3–8MB
~176K SLoC