crossbeam-deque 0.8.8

Concurrent work-stealing deque
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// The rustc-cfg emitted by the build script are *not* public API.

use std::env;

fn main() {
    println!("cargo:rerun-if-changed=build.rs");
    println!("cargo:rustc-check-cfg=cfg(crossbeam_sanitize_thread)");

    let target = &*env::var("TARGET").expect("TARGET not set");

    // `cfg(sanitize = "..")` is not stabilized.
    // x86_64-unknown-linux-gnutsan is available on stable since Rust 1.96: https://github.com/rust-lang/rust/pull/152757
    let sanitize = env::var("CARGO_CFG_SANITIZE").unwrap_or_default();
    if sanitize.contains("thread") || target == "x86_64-unknown-linux-gnutsan" {
        println!("cargo:rustc-cfg=crossbeam_sanitize_thread");
    }
}