From b92e86c77fb32530f6817613fc42903434f0694a Mon Sep 17 00:00:00 2001 From: Kornel Date: Wed, 9 Aug 2017 13:07:55 +0100 Subject: [PATCH 1/2] Prevent build error on Linux --- core-foundation-sys/build.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core-foundation-sys/build.rs b/core-foundation-sys/build.rs index a1a0ea1..1f03b06 100644 --- a/core-foundation-sys/build.rs +++ b/core-foundation-sys/build.rs @@ -8,5 +8,7 @@ // except according to those terms. fn main() { - println!("cargo:rustc-link-lib=framework=CoreFoundation"); + if std::env::var("TARGET").unwrap().contains("-apple") { + println!("cargo:rustc-link-lib=framework=CoreFoundation"); + } } From 354272236918d63209a0fb3e3360de3ca4b2af68 Mon Sep 17 00:00:00 2001 From: Kornel Date: Wed, 9 Aug 2017 13:10:05 +0100 Subject: [PATCH 2/2] Bump version --- core-foundation-sys/Cargo.toml | 2 +- core-foundation/Cargo.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core-foundation-sys/Cargo.toml b/core-foundation-sys/Cargo.toml index 4a98322..6cf72ca 100644 --- a/core-foundation-sys/Cargo.toml +++ b/core-foundation-sys/Cargo.toml @@ -3,7 +3,7 @@ name = "core-foundation-sys" description = "Bindings to Core Foundation for OS X" homepage = "https://github.com/servo/core-foundation-rs" repository = "https://github.com/servo/core-foundation-rs" -version = "0.4.3" +version = "0.4.4" authors = ["The Servo Project Developers"] license = "MIT / Apache-2.0" build = "build.rs" diff --git a/core-foundation/Cargo.toml b/core-foundation/Cargo.toml index 4b8e305..a5bb239 100644 --- a/core-foundation/Cargo.toml +++ b/core-foundation/Cargo.toml @@ -3,13 +3,13 @@ name = "core-foundation" description = "Bindings to Core Foundation for OS X" homepage = "https://github.com/servo/core-foundation-rs" repository = "https://github.com/servo/core-foundation-rs" -version = "0.4.3" +version = "0.4.4" authors = ["The Servo Project Developers"] license = "MIT / Apache-2.0" [dependencies.core-foundation-sys] path = "../core-foundation-sys" -version = "0.4.3" +version = "0.4.4" [dependencies] libc = "0.2"