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:
Nathan Fiedler 2020-05-21 08:17:08 -07:00
parent a2ae59aa43
commit 43edd76429
2 changed files with 4 additions and 3 deletions

View file

@ -11,8 +11,8 @@ keywords = ["magickwand", "imagemagick"]
build = "build.rs"
[dependencies]
libc = ">=0.2"
libc = "0.2.70"
[build-dependencies]
bindgen = "0.52.0"
pkg-config = ">=0.3"
bindgen = "0.53.2"
pkg-config = "0.3.17"

View file

@ -132,6 +132,7 @@ fn main() {
.ctypes_prefix("libc")
.raw_line("extern crate libc;")
.header(gen_h_path.to_str().unwrap())
.size_t_is_usize(true)
.parse_callbacks(Box::new(ignored_macros))
.blacklist_type("timex")
.blacklist_function("clock_adjtime");