From d00289936e4fe72798e5d782c255e6a93bc7f13c Mon Sep 17 00:00:00 2001 From: dalance Date: Mon, 14 Mar 2022 12:41:44 +0900 Subject: [PATCH] Update gcc crate to cc --- Cargo.lock | 22 ++++++++++++---------- Cargo.toml | 2 +- build.rs | 6 +++--- 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 021a6b9..4094364 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,14 +1,16 @@ -[root] -name = "hellopp" -version = "0.1.0" -dependencies = [ - "gcc 0.3.41 (registry+https://github.com/rust-lang/crates.io-index)", -] +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 [[package]] -name = "gcc" -version = "0.3.41" +name = "cc" +version = "1.0.73" source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11" -[metadata] -"checksum gcc 0.3.41 (registry+https://github.com/rust-lang/crates.io-index)" = "3689e1982a563af74960ae3a4758aa632bb8fd984cfc3cc3b60ee6109477ab6e" +[[package]] +name = "hellopp" +version = "0.1.0" +dependencies = [ + "cc", +] diff --git a/Cargo.toml b/Cargo.toml index b59fae2..e12caaa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,6 +5,6 @@ name = "hellopp" version = "0.1.0" [build-dependencies] -gcc = "0.3.41" +cc = "1.0.73" [dependencies] diff --git a/build.rs b/build.rs index acdaf51..5b7b01d 100644 --- a/build.rs +++ b/build.rs @@ -1,9 +1,9 @@ -extern crate gcc; +extern crate cc; -use gcc::Config; +use cc::Build; fn main() { - Config::new() + Build::new() .cpp(true) .file("hellopp.cc") .compile("libhellopp.a");