Update to latest bindgen release
The behavior around size_t changed so added a flag to temporarily avoid the issue until it becomes a real problem later on. cargo test passes
This commit is contained in:
@ -11,8 +11,8 @@ keywords = ["magickwand", "imagemagick"]
|
|||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
libc = ">=0.2"
|
libc = "0.2.70"
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
bindgen = "0.52.0"
|
bindgen = "0.53.2"
|
||||||
pkg-config = ">=0.3"
|
pkg-config = "0.3.17"
|
||||||
|
|||||||
1
build.rs
1
build.rs
@ -132,6 +132,7 @@ fn main() {
|
|||||||
.ctypes_prefix("libc")
|
.ctypes_prefix("libc")
|
||||||
.raw_line("extern crate libc;")
|
.raw_line("extern crate libc;")
|
||||||
.header(gen_h_path.to_str().unwrap())
|
.header(gen_h_path.to_str().unwrap())
|
||||||
|
.size_t_is_usize(true)
|
||||||
.parse_callbacks(Box::new(ignored_macros))
|
.parse_callbacks(Box::new(ignored_macros))
|
||||||
.blacklist_type("timex")
|
.blacklist_type("timex")
|
||||||
.blacklist_function("clock_adjtime");
|
.blacklist_function("clock_adjtime");
|
||||||
|
|||||||
Reference in New Issue
Block a user