mirror of
https://github.com/openharmony/third_party_rust_indexmap.git
synced 2026-07-19 16:43:59 -04:00
98242c14d4
https://github.com/rust-lang/rust/issues/74878 and https://github.com/rust-lang/rust/issues/65798 were both stabilized in 1.51.
10 lines
337 B
Rust
10 lines
337 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::new().emit_rustc_version(1, 51);
|
|
autocfg::rerun_path("build.rs");
|
|
}
|