From f2af496bbe2baa8220a25c788785dec3e5c1223a Mon Sep 17 00:00:00 2001 From: Ticki Date: Tue, 15 Mar 2016 15:46:51 +0100 Subject: [PATCH] Don't import libc, when not supported --- Cargo.toml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 3b8c618..6ea1488 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,22 @@ name = "libterm" version = "0.1.0" authors = ["Ticki "] -[dependencies] +[target.i686-unknown-linux-gnu.dependencies] +libc = "0.2.8" + +[target.x86_64-unknown-linux-gnu.dependencies] +libc = "0.2.8" + +[target.i686-unknown-linux-musl.dependencies] +libc = "0.2.8" + +[target.x86_64-unknown-linux-musl.dependencies] +libc = "0.2.8" + +[target.i686-apple-darwin.dependencies] +libc = "0.2.8" + +[target.x86_64-apple-darwin.dependencies] libc = "0.2.8" [features]