diff --git a/Cargo.toml b/Cargo.toml index 2371614..dc8d250 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ version = "0.3.0" repository = "FauxFaux/apt-pkg-native-rs" [build-dependencies] -gcc = "0.3" +cc = "1.0" [dependencies] lazy_static = "1" diff --git a/build.rs b/build.rs index e17cda0..e508461 100644 --- a/build.rs +++ b/build.rs @@ -1,11 +1,11 @@ -extern crate gcc; +extern crate cc; const SRC: &str = "apt-pkg-c/lib.cpp"; fn main() { println!("cargo:rerun-if-changed={}", SRC); - let mut build = gcc::Build::new(); + let mut build = cc::Build::new(); build.file(SRC); build.cpp(true); build.flag("-std=gnu++11");