Skip to content

Commit 5929637

Browse files
committed
make the dependencies platform specific
1 parent d942f1a commit 5929637

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ description = "a library for using child processes from multiple threads"
99
keywords = ["command", "process", "child", "subprocess"]
1010
categories = ["os"]
1111

12-
[dependencies]
12+
[target.'cfg(not(windows))'.dependencies]
1313
libc = "0.2.42"
14+
15+
[target.'cfg(windows)'.dependencies]
1416
winapi = { version = "0.3.5", features = ["synchapi", "winbase", "winerror", "winnt"] }

0 commit comments

Comments
 (0)