20 releases

0.5.4 Sep 26, 2024
0.5.2 May 19, 2024
0.4.5 Feb 23, 2024
0.4.2 May 5, 2023
0.4.0 Nov 6, 2022

#52 in Programming languages

Download history 5793/week @ 2024-11-18 5718/week @ 2024-11-25 6309/week @ 2024-12-02 6273/week @ 2024-12-09 6387/week @ 2024-12-16 4551/week @ 2024-12-23 5297/week @ 2024-12-30 5871/week @ 2025-01-06 6918/week @ 2025-01-13 7084/week @ 2025-01-20 7386/week @ 2025-01-27 7340/week @ 2025-02-03 7378/week @ 2025-02-10 6409/week @ 2025-02-17 6562/week @ 2025-02-24 6482/week @ 2025-03-03

27,660 downloads per month
Used in 4 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
~134K SLoC