diff --git a/Cargo.toml b/Cargo.toml index 3360721..41f6c1a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,6 +21,7 @@ version = "0.4.3" [dependencies] bitflags = "*" +libc = "*" [dev-dependencies] rand = "*" diff --git a/lmdb-sys/Cargo.toml b/lmdb-sys/Cargo.toml index fc9ccc0..cbdfa41 100644 --- a/lmdb-sys/Cargo.toml +++ b/lmdb-sys/Cargo.toml @@ -11,6 +11,9 @@ documentation = "http://rust-ci.org/danburkert/lmdb-rs/doc/lmdb-sys/" build = "build.rs" +[dependencies] +libc = "*" + [build-dependencies] pkg-config = "*" gcc = "*" diff --git a/lmdb-sys/src/lib.rs b/lmdb-sys/src/lib.rs index a97b824..217fd92 100644 --- a/lmdb-sys/src/lib.rs +++ b/lmdb-sys/src/lib.rs @@ -1,5 +1,4 @@ #![allow(non_camel_case_types)] -#![feature(libc)] extern crate libc; diff --git a/src/lib.rs b/src/lib.rs index 06dc2f4..72a92cb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,7 +1,7 @@ //! Idiomatic and safe APIs for interacting with the //! [Symas Lightning Memory-Mapped Database (LMDB)](http://symas.com/mdb/). -#![feature(libc, optin_builtin_traits, unsafe_destructor)] +#![feature(optin_builtin_traits, unsafe_destructor)] #![cfg_attr(test, feature(std_misc, test))] extern crate libc;