mirror of
https://github.com/napi-rs/napi-rs.git
synced 2025-12-08 19:56:07 +00:00
* feat(napi): tokio multi-thread mode on wasi * tokio_unstable flag * snapshot * ensure runtime * oncelock combine lazylock * noop feature
9 lines
286 B
Rust
9 lines
286 B
Rust
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();
|
|
}
|
|
}
|