Skip to content

Commit 26a354b

Browse files
authored
Updated version to 0.2.10 (#59)
* Updated version to 0.2.10 * Fix layout test issue and remove deprecation warnings
1 parent 3fcb18c commit 26a354b

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "coreaudio-sys"
3-
version = "0.2.9"
3+
version = "0.2.10"
44
authors = ["Mitchell Nordine <[email protected]>"]
55
description = "Bindings for Apple's CoreAudio frameworks generated via rust-bindgen"
66
license = "MIT"

build.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,15 @@ fn build(sdk_path: Option<&str>, target: &str) {
128128
if target.contains("apple-ios") {
129129
// time.h as has a variable called timezone that conflicts with some of the objective-c
130130
// calls from NSCalendar.h in the Foundation framework. This removes that one variable.
131-
builder = builder.blacklist_item("timezone");
132-
builder = builder.blacklist_item("objc_object");
131+
builder = builder.blocklist_item("timezone");
132+
builder = builder.blocklist_item("objc_object");
133133
}
134134

135+
// bindgen produces alignment tests that cause undefined behavior in some cases.
136+
// This seems to happen across all apple target tripples :/.
137+
// https://github.com/rust-lang/rust-bindgen/issues/1651
138+
builder = builder.layout_tests(false);
139+
135140
let meta_header: Vec<_> = headers
136141
.iter()
137142
.map(|h| format!("#include <{}>\n", h))

0 commit comments

Comments
 (0)