From 11e1341ca2617e70cbed5de4d46869a1b1b70dea Mon Sep 17 00:00:00 2001 From: Hikari Hayashi Date: Mon, 8 Jan 2024 19:38:27 +0800 Subject: [PATCH] Fix deprecation warning --- crates/fontconfig-sys/build.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/fontconfig-sys/build.rs b/crates/fontconfig-sys/build.rs index b587d67..b0e4f91 100644 --- a/crates/fontconfig-sys/build.rs +++ b/crates/fontconfig-sys/build.rs @@ -1,11 +1,11 @@ use std::{env, path::PathBuf}; +// https://github.com/rust-lang/rust-bindgen/issues/2712 +#[allow(deprecated)] use bindgen::{builder, CargoCallbacks, EnumVariation, MacroTypeVariation}; use pkg_config::probe_library; fn main() { - println!("cargo:rerun-if-changed=./include/fontconfig.h"); - let library = probe_library("fontconfig").unwrap(); let clang_args: Vec<_> = library .include_paths