From 8209bc68411d52c9dce1bec80fc67c7f33b81f53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?joseLu=C3=ADs?= Date: Sun, 18 Apr 2021 12:08:13 +0200 Subject: [PATCH] [rust] use deprecated blacklist_function; #1339 --- rust/build/build.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rust/build/build.rs b/rust/build/build.rs index 55fb2ae50..71914e3cb 100644 --- a/rust/build/build.rs +++ b/rust/build/build.rs @@ -16,6 +16,10 @@ fn main() { // The bindgen::Builder is the main entry point to bindgen, and lets you // build up options for the resulting bindings. + // + // allow .blacklist_function instead of .blocklist_function for now, + // until we update bindgen to >= 0.58. + #[allow(deprecated)] let mut builder = bindgen::Builder::default() .use_core() .ctypes_prefix("cty") @@ -27,8 +31,8 @@ fn main() { .clang_arg("-fretain-comments-from-system-headers") .clang_arg("-fparse-all-comments") // Remove warnings about improper_ctypes - .blocklist_function("strtold") - .blocklist_function("wcstold") + .blacklist_function("strtold") + .blacklist_function("wcstold") // Don't derive the Copy trait on types with destructors. .no_copy("ncdirect") .no_copy("ncdplot")