From 113f60d90cce46c6397e452d7b4e90d079d6bff1 Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Tue, 24 Oct 2017 15:01:49 +0100 Subject: [PATCH] Switch gcc crate to cc crate It was renamed, and has published a stable 1.0 release. --- liblmdb-sys/Cargo.toml | 2 +- liblmdb-sys/build.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/liblmdb-sys/Cargo.toml b/liblmdb-sys/Cargo.toml index 5a208e41..0f499ef7 100644 --- a/liblmdb-sys/Cargo.toml +++ b/liblmdb-sys/Cargo.toml @@ -11,4 +11,4 @@ build = "build.rs" [dependencies] libc = "0.2" [build-dependencies] -gcc = "0.3" +cc = "1.0" diff --git a/liblmdb-sys/build.rs b/liblmdb-sys/build.rs index e96cf01d..439b681d 100755 --- a/liblmdb-sys/build.rs +++ b/liblmdb-sys/build.rs @@ -1,9 +1,9 @@ -extern crate gcc; +extern crate cc; fn main() { let target = std::env::var("TARGET").unwrap(); - let mut config = gcc::Config::new(); + let mut config = cc::Build::new(); config.file("mdb/libraries/liblmdb/mdb.c") .file("mdb/libraries/liblmdb/midl.c"); config.opt_level(2);