From d0ee592ba1e65a605e8d73b5baf9ca8d07141a0a Mon Sep 17 00:00:00 2001 From: edef Date: Thu, 23 Apr 2015 01:14:01 +0200 Subject: [PATCH] use the libc crate from cargo --- Cargo.toml | 6 +++++- src/lib.rs | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a25505c..972243b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,5 +9,9 @@ gcc = "0.3.3" [features] default = ["os", "valgrind"] -os = [] +os = ["libc"] valgrind = [] + +[dependencies.libc] +version = "0.1.6" +optional = true diff --git a/src/lib.rs b/src/lib.rs index 9126995..b22ce9c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,7 +3,6 @@ // See the LICENSE file included in this distribution. #![feature(no_std)] #![feature(asm, core)] -#![feature(libc)] #![no_std] //! libfringe is a low-level green threading library.