From 08ce3af3e18928cae2c943447d1fb88de3187a0b Mon Sep 17 00:00:00 2001 From: John Nunley Date: Tue, 10 Jan 2023 09:00:28 +0000 Subject: [PATCH] Ensure all free unixes can build This fixes the `cfg` guards inside the `Cargo.toml`. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 6c45ec94..874ff842 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -103,7 +103,7 @@ features = [ "Win32_UI_WindowsAndMessaging", ] -[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))'.dependencies] +[target.'cfg(all(unix, not(any(target_os = "redox", target_arch = "wasm32", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies] libc = "0.2.64" mio = { version = "0.8", features = ["os-ext"], optional = true } percent-encoding = { version = "2.0", optional = true }