#sysroot #build

rustc-build-sysroot

Build a rustc sysroot with custom flags

10 unstable releases (3 breaking)

0.4.2 May 5, 2023
0.4.1 Dec 28, 2022
0.4.0 Nov 6, 2022
0.3.3 Sep 29, 2022
0.1.0 Sep 24, 2022

#74 in Configuration

Download history 4947/week @ 2023-08-15 5682/week @ 2023-08-22 5444/week @ 2023-08-29 5808/week @ 2023-09-05 5432/week @ 2023-09-12 6158/week @ 2023-09-19 6053/week @ 2023-09-26 6359/week @ 2023-10-03 6297/week @ 2023-10-10 6241/week @ 2023-10-17 6262/week @ 2023-10-24 5737/week @ 2023-10-31 5212/week @ 2023-11-07 6312/week @ 2023-11-14 6232/week @ 2023-11-21 4936/week @ 2023-11-28

23,380 downloads per month
Used in 3 crates

MIT/Apache

17KB
312 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.


lib.rs:

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

Dependencies

~0.3–9MB
~80K SLoC