Skip to content

Commit

Permalink
Only require libc when building for unix
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay authored and Thomas Bracht Laumann Jespersen committed Nov 26, 2017
1 parent f52e797 commit f87e35e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ filetime = "0.1"
getopts = "0.2"
log = "0.3"
rustc-serialize = "0.3"
libc = "0.2"
tempdir = { version = "0.3", optional = true }

[target."cfg(unix)".dependencies]
libc = "0.2"

[target."cfg(windows)".dependencies]
miow = "0.2"
winapi = "0.2"
Expand Down

0 comments on commit f87e35e

Please sign in to comment.