Build the standard library for an unsupported target · Issue #3 · rust-lang/wg-cargo-std-aware (original) (raw)

This is a "use case" issue to try to clarify and discuss a use case, and how it will be addressed.

Building a project for a target that is not available in the Rust distribution can be challenging currently. Some use tools like cargo-xbuild or xargo, or forking rust itself. One of the goals of "std-aware Cargo" is to make this process a little easier.

Many use cases for this are for no_std environments, and use .json target specifications to specify the environment.

Cargo already supports .json targets, and most of the work for supporting #2 should enable this for basic usage.

However, from a higher level this use case has some other issues: