From 43edd76429d0bdee3436d1e9485cb5b0484cf019 Mon Sep 17 00:00:00 2001 From: Nathan Fiedler Date: Thu, 21 May 2020 08:17:08 -0700 Subject: [PATCH] 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 --- Cargo.toml | 6 +++--- build.rs | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ed02b12..f9bf94f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/build.rs b/build.rs index 76ca580..65115f3 100644 --- a/build.rs +++ b/build.rs @@ -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");