From e42c527e87d937da9e01aaeb563c0b948580dc89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Zemanovi=C4=8D?= Date: Tue, 20 Sep 2022 18:52:47 +0200 Subject: [PATCH] disable async_process_no_io_safety for nightly work-around for https://github.com/smol-rs/polling/issues/38 breaking namada tooling build with nightly 2022-05-20 --- Cargo.toml | 1 + build.rs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 84b6175..10bc3a1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/build.rs b/build.rs index d5d1af7..9df7ea0 100644 --- a/build.rs +++ b/build.rs @@ -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"); } }