From 989b1d439c40ee009240271e866826ca0a9d7385 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sat, 16 Jul 2016 01:19:45 +0000 Subject: [PATCH] Remove "os" feature; use target-specific dependencies instead. --- Cargo.toml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3f79363..833eb30 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,27 +3,21 @@ authors = ["edef "] name = "fringe" version = "0.0.1" -[dependencies.kernel32-sys] -optional = true -version = "0.2.2" +[target.'cfg(unix)'.dependencies] +libc = "0.1.6" -[dependencies.libc] -optional = true -version = "0.1.6" +[target.'cfg(windows)'.dependencies] +kernel32-sys = "0.2.2" +winapi = "0.2.6" [dependencies.valgrind] -git = "https://github.com/edef1c/libvalgrind" optional = true +git = "https://github.com/edef1c/libvalgrind" rev = "9ef793e9549aabfd2d969615180b69d29ce28d88" [dependencies.void] default-features = false version = "1" -[dependencies.winapi] -optional = true -version = "0.2.6" - [features] -default = ["os", "valgrind"] -os = ["libc", "kernel32-sys", "winapi"] +default = ["valgrind"]