rustc_minicore in run_make_support::external_deps::rustc - Rust
Description: Construct a `rustc` invocation for building `minicore`.

Skip to main content

## rustc_minicore

# Function rustc_minicore

Source

    pub fn rustc_minicore() -> Rustc

Expand description

Construct a `rustc` invocation for building `minicore`.

This function:

- adds `tests/auxiliary/minicore.rs` as an input
- sets the crate name to `"minicore"`
- sets the crate type to `rlib`

## §Example

ⓘ

    rustc_minicore().target("wasm32-wasip1").target_cpu("mvp").output("libminicore.rlib").run();

    rustc()
        .input("foo.rs")
        .target("wasm32-wasip1")
        .target_cpu("mvp")
        .extern_("minicore", path("libminicore.rlib"))
        // ...
        .run()