20 lines
490 B
Rust
20 lines
490 B
Rust
fn main() {
|
|
let cfg = match autocfg::AutoCfg::new() {
|
|
Ok(cfg) => cfg,
|
|
Err(e) => {
|
|
println!(
|
|
"cargo:warning=async-process: failed to detect compiler features: {}",
|
|
e
|
|
);
|
|
return;
|
|
}
|
|
};
|
|
|
|
if !cfg.probe_rustc_version(1, 62) {
|
|
autocfg::emit("async_process_no_windows_raw_arg");
|
|
}
|
|
if !cfg.probe_rustc_version(1, 63) {
|
|
autocfg::emit("async_process_no_io_safety");
|
|
}
|
|
}
|