use cfg_aliases::cfg_aliases;
fn main() {
cfg_aliases! {
std_io: { all(feature = "std", any(target_os = "windows", target_os = "linux", target_os = "macos", target_os = "android")) },
persistence: { all(feature = "persistence", any(std_io, target_family = "wasm")) },
serializable: { any(std_io, persistence) },
exclusive_memory_only: { any(feature = "exclusive-memory-only", target_family = "wasm") },
multi_threading: { all(feature = "std", not(target_family = "wasm")) },
}
println!("cargo::rustc-check-cfg=cfg(cubecl_debug_info)");
if std::env::var("DEBUG").is_ok_and(|debug| debug == "true") {
println!("cargo:rustc-cfg=cubecl_debug_info");
}
}