upgrade gcc crate to cc

This commit is contained in:
Chris West (Faux) 2018-04-14 20:43:04 +01:00
parent 2f2167c027
commit 46ad5e2bb2
2 changed files with 3 additions and 3 deletions

View File

@ -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"

View File

@ -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");