#rustc #sysroot #build #xargo


Build a rustc sysroot with custom flags

8 unstable releases (3 breaking)

0.4.0 Nov 6, 2022
0.3.3 Sep 29, 2022
0.2.1 Sep 25, 2022
0.1.0 Sep 24, 2022

#752 in Development tools

Download history 262/week @ 2022-09-21 452/week @ 2022-09-28 3344/week @ 2022-10-05 3797/week @ 2022-10-12 4174/week @ 2022-10-19 3830/week @ 2022-10-26 4278/week @ 2022-11-02 4109/week @ 2022-11-09 3667/week @ 2022-11-16

16,476 downloads per month
Used in cargo-careful


293 lines


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.


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