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

#50 in Programming languages

Download history 5858/week @ 2024-10-27 5451/week @ 2024-11-03 5396/week @ 2024-11-10 5716/week @ 2024-11-17 5684/week @ 2024-11-24 6203/week @ 2024-12-01 6345/week @ 2024-12-08 6420/week @ 2024-12-15 4473/week @ 2024-12-22 5500/week @ 2024-12-29 5696/week @ 2025-01-05 6767/week @ 2025-01-12 7245/week @ 2025-01-19 7236/week @ 2025-01-26 7404/week @ 2025-02-02 6299/week @ 2025-02-09

29,037 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–10MB
~128K SLoC