Skip to content

Commit eb31f20

Browse files
committed
Only require libc when building for unix
1 parent ba4deea commit eb31f20

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
@@ -20,9 +20,11 @@ filetime = "0.1"
2020
getopts = "0.2"
2121
log = "0.3"
2222
rustc-serialize = "0.3"
23-
libc = "0.2"
2423
tempdir = { version = "0.3", optional = true }
2524

25+
[target."cfg(unix)".dependencies]
26+
libc = "0.2"
27+
2628
[target."cfg(windows)".dependencies]
2729
miow = "0.2"
2830
winapi = "0.2"

0 commit comments

Comments
 (0)