From 5929637f5cf1bebc5d608b4d98fd5c8a10626712 Mon Sep 17 00:00:00 2001 From: Jack O'Connor Date: Fri, 30 Aug 2019 14:52:38 -0400 Subject: [PATCH] make the dependencies platform specific --- Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 34f4389..469779f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,6 +9,8 @@ description = "a library for using child processes from multiple threads" keywords = ["command", "process", "child", "subprocess"] categories = ["os"] -[dependencies] +[target.'cfg(not(windows))'.dependencies] libc = "0.2.42" + +[target.'cfg(windows)'.dependencies] winapi = { version = "0.3.5", features = ["synchapi", "winbase", "winerror", "winnt"] }