use cfg_aliases::cfg_aliases;
fn main() {
if let Ok(family) = std::env::var("CARGO_CFG_TARGET_FAMILY")
&& family == "wasm"
{
println!("cargo:rustc-cfg=portable_atomic_unsafe_assume_single_core");
}
cfg_aliases! {
multi_threading: { all(feature = "std", not(target_family = "wasm")) },
std_io: { all(feature = "std", any(target_os = "windows", target_os = "linux", target_os = "macos", target_os = "android")) },
compiler_std_io: { all(feature = "compiler-std", any(target_os = "windows", target_os = "linux", target_os = "macos", target_os = "android")) },
backtrace: { all(test, feature="std") },
}
}