Skip to content

Commit

Permalink
disable async_process_no_io_safety for nightly
Browse files Browse the repository at this point in the history
work-around for
smol-rs/polling#38
breaking namada tooling build with nightly 2022-05-20
  • Loading branch information
tzemanovic committed Sep 20, 2022
1 parent 115741b commit e42c527
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ once_cell = "1.4.1"

[build-dependencies]
autocfg = "1"
rustversion = "1.0.9"

[target.'cfg(unix)'.dependencies]
async-io = "1.0.0"
Expand Down
3 changes: 2 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ fn main() {
}
};

if !cfg.probe_rustc_version(1, 63) {
let is_nightly = rustversion::cfg!(nightly);
if !cfg.probe_rustc_version(1, 63) || is_nightly {
autocfg::emit("async_process_no_io_safety");
}
}

0 comments on commit e42c527

Please sign in to comment.