From 5bbca7e7f86fa1a1d05960c7730044eabd9f6e01 Mon Sep 17 00:00:00 2001 From: Sebastian Imlay Date: Sun, 17 Apr 2022 23:45:02 -0400 Subject: [PATCH 1/2] Updated version to 0.2.10 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b23e3ce..cf9e3bc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "coreaudio-sys" -version = "0.2.9" +version = "0.2.10" authors = ["Mitchell Nordine "] description = "Bindings for Apple's CoreAudio frameworks generated via rust-bindgen" license = "MIT" From 4d7739969e308416e2bd8923b5752f7193a459cc Mon Sep 17 00:00:00 2001 From: Sebastian Imlay Date: Tue, 19 Apr 2022 13:20:13 -0400 Subject: [PATCH 2/2] Fix layout test issue and remove deprecation warnings --- build.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/build.rs b/build.rs index dd83151..81cfbcc 100644 --- a/build.rs +++ b/build.rs @@ -128,10 +128,15 @@ fn build(sdk_path: Option<&str>, target: &str) { if target.contains("apple-ios") { // time.h as has a variable called timezone that conflicts with some of the objective-c // calls from NSCalendar.h in the Foundation framework. This removes that one variable. - builder = builder.blacklist_item("timezone"); - builder = builder.blacklist_item("objc_object"); + builder = builder.blocklist_item("timezone"); + builder = builder.blocklist_item("objc_object"); } + // bindgen produces alignment tests that cause undefined behavior in some cases. + // This seems to happen across all apple target tripples :/. + // https://github.com/rust-lang/rust-bindgen/issues/1651 + builder = builder.layout_tests(false); + let meta_header: Vec<_> = headers .iter() .map(|h| format!("#include <{}>\n", h))