19 releases

0.5.3 Aug 5, 2024
0.5.2 May 19, 2024
0.4.7 May 5, 2024
0.4.5 Feb 23, 2024
0.4.0 Nov 6, 2022

#54 in Programming languages

Download history 6019/week @ 2024-05-23 5572/week @ 2024-05-30 5956/week @ 2024-06-06 6369/week @ 2024-06-13 5670/week @ 2024-06-20 5694/week @ 2024-06-27 5734/week @ 2024-07-04 5826/week @ 2024-07-11 5664/week @ 2024-07-18 5774/week @ 2024-07-25 6059/week @ 2024-08-01 6412/week @ 2024-08-08 6301/week @ 2024-08-15 6057/week @ 2024-08-22 5126/week @ 2024-08-29 5052/week @ 2024-09-05

23,372 downloads per month
Used in 3 crates

MIT/Apache

24KB
401 lines

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.


lib.rs:

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

Dependencies

~2–11MB
~118K SLoC