forked from mirrors/gecko-dev
New versions have shrink_to_fit(). This also explicitly requests the "std" feature, because otherwise autocfg fails to pass the panic=abort flag to rustc and it chokes. Depends on D96130 Differential Revision: https://phabricator.services.mozilla.com/D96131
8 lines
291 B
Rust
8 lines
291 B
Rust
fn main() {
|
|
// If "std" is explicitly requested, don't bother probing the target for it.
|
|
match std::env::var_os("CARGO_FEATURE_STD") {
|
|
Some(_) => autocfg::emit("has_std"),
|
|
None => autocfg::new().emit_sysroot_crate("std"),
|
|
}
|
|
autocfg::rerun_path("build.rs");
|
|
}
|