18 releases

new 0.5.2 May 19, 2024
0.4.7 May 5, 2024
0.4.5 Feb 23, 2024
0.4.2 May 5, 2023
0.4.0 Nov 6, 2022

#62 in Programming languages

Download history 5054/week @ 2024-02-02 6496/week @ 2024-02-09 6279/week @ 2024-02-16 5400/week @ 2024-02-23 5945/week @ 2024-03-01 6663/week @ 2024-03-08 6642/week @ 2024-03-15 6231/week @ 2024-03-22 6469/week @ 2024-03-29 6132/week @ 2024-04-05 6349/week @ 2024-04-12 6109/week @ 2024-04-19 5535/week @ 2024-04-26 5729/week @ 2024-05-03 5517/week @ 2024-05-10 5485/week @ 2024-05-17

23,127 downloads per month
Used in 3 crates

MIT/Apache

26KB
441 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
~115K SLoC