From f87e35e931e7686b18eb76b691794849b383a3c0 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 24 Nov 2017 18:00:21 -0800 Subject: [PATCH] Only require libc when building for unix --- Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 79e4862..86f2076 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"