diff --git a/rust-to-c/Cargo.toml b/rust-to-c/Cargo.toml index aedebe0..90c80a0 100644 --- a/rust-to-c/Cargo.toml +++ b/rust-to-c/Cargo.toml @@ -8,4 +8,4 @@ build = "build.rs" libc = "0.1" [build-dependencies] -gcc = "0.3" +cc = "1.0" diff --git a/rust-to-c/build.rs b/rust-to-c/build.rs index ec8cc94..d0f726f 100644 --- a/rust-to-c/build.rs +++ b/rust-to-c/build.rs @@ -1,5 +1,7 @@ -extern crate gcc; +extern crate cc; fn main() { - gcc::Config::new().file("src/double.c").compile("libdouble.a"); + cc::Build::new() + .file("src/double.c") + .compile("libdouble.a"); }