16 releases

new 0.5.0 May 12, 2024
0.4.6 Apr 14, 2024
0.4.5 Feb 23, 2024
0.4.2 May 5, 2023
0.4.0 Nov 6, 2022

#59 in Programming languages

Download history 5326/week @ 2024-01-25 4420/week @ 2024-02-01 6488/week @ 2024-02-08 6270/week @ 2024-02-15 5684/week @ 2024-02-22 5867/week @ 2024-02-29 6481/week @ 2024-03-07 6655/week @ 2024-03-14 6344/week @ 2024-03-21 6172/week @ 2024-03-28 6325/week @ 2024-04-04 6266/week @ 2024-04-11 6253/week @ 2024-04-18 5388/week @ 2024-04-25 5863/week @ 2024-05-02 4974/week @ 2024-05-09

23,357 downloads per month
Used in 3 crates

MIT/Apache

23KB
384 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
~112K SLoC