Skip to content

Commit e42c527

Browse files
committed
disable async_process_no_io_safety for nightly
work-around for smol-rs/polling#38 breaking namada tooling build with nightly 2022-05-20
1 parent 115741b commit e42c527

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ once_cell = "1.4.1"
2222

2323
[build-dependencies]
2424
autocfg = "1"
25+
rustversion = "1.0.9"
2526

2627
[target.'cfg(unix)'.dependencies]
2728
async-io = "1.0.0"

build.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ fn main() {
1010
}
1111
};
1212

13-
if !cfg.probe_rustc_version(1, 63) {
13+
let is_nightly = rustversion::cfg!(nightly);
14+
if !cfg.probe_rustc_version(1, 63) || is_nightly {
1415
autocfg::emit("async_process_no_io_safety");
1516
}
1617
}

0 commit comments

Comments
 (0)