forked from mirrors/gecko-dev
This is the hash map implementation now used in the Rust standard library: * https://blog.rust-lang.org/2019/07/04/Rust-1.36.0.html#a-new-hashmapk-v-implementation * https://github.com/rust-lang/rust/pull/58623 * https://crates.io/crates/hashbrown Differential Revision: https://phabricator.services.mozilla.com/D71740
9 lines
301 B
Rust
9 lines
301 B
Rust
fn main() {
|
|
println!("cargo:rerun-if-changed=build.rs");
|
|
let nightly = std::env::var_os("CARGO_FEATURE_NIGHTLY").is_some();
|
|
let has_stable_alloc = || autocfg::new().probe_rustc_version(1, 36);
|
|
|
|
if nightly || has_stable_alloc() {
|
|
autocfg::emit("has_extern_crate_alloc")
|
|
}
|
|
}
|