cargo-xbuild icon indicating copy to clipboard operation
cargo-xbuild copied to clipboard

How to use a custom std

Open vinaychandra opened this issue 5 years ago • 1 comments

xbuild currently compiles core and alloc and puts in the custom sysroot. Is it possible to put a custom std in that location and compile it?

The idea is that we can provide a minimal custom std so that crates that need std can be compiled without changing their code.

vinaychandra avatar Jun 09 '20 06:06 vinaychandra

This is not supported currently and I don't think that we will add a feature like this, given that this crate is likely replaced by the -Zbuild-std feature of cargo soon (also see https://github.com/rust-lang/wg-cargo-std-aware/issues/7 for a discussion about custom standard libraries with -Zbuild-std).

As far as I know, the xargo project does support building a custom standard library, so maybe that works for you.

phil-opp avatar Jun 09 '20 07:06 phil-opp