Skip to content

Commit

Permalink
disable async_io_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 93cee46 commit 9285dad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ waker-fn = "1.1.0"

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

[target."cfg(unix)".dependencies]
libc = "0.2.77"
Expand Down
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ fn main() {
return;
}
};

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_io_no_io_safety");
}
}

0 comments on commit 9285dad

Please sign in to comment.