Documentation
1
2
3
4
5
6
7
8
fn main() {
  println!("cargo::rustc-check-cfg=cfg(tokio_unstable)");
  let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap();
  let target_env = std::env::var("CARGO_CFG_TARGET_ENV").unwrap();
  if target_os == "windows" && target_env == "gnu" {
    napi_build::setup();
  }
}