From 1912915cd541381a8184f574e13c3b31ba6f0a06 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sun, 16 Apr 2023 09:43:48 +0200 Subject: [PATCH] Only pull `is-wsl` on unix. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index e254eb6..488d8f6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,5 +20,5 @@ name = "open" [target.'cfg(all(unix, not(macos)))'.dependencies] pathdiff = "0.2.0" -[dependencies] +[target.'cfg(any(target_os = "linux", target_os = "android", target_os = "freebsd", target_os = "dragonfly", target_os = "netbsd", target_os = "openbsd", target_os = "illumos", target_os = "solaris" ))'.dependencies] is-wsl = "0.4.0"