Skip to content

Commit

Permalink
stop using deprecated type
Browse files Browse the repository at this point in the history
  • Loading branch information
tshepang authored and emilio committed Apr 1, 2024
1 parent 4f78afa commit 2d293e6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bindgen-integration/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ extern crate cc;
use bindgen::callbacks::{
DeriveInfo, IntKind, MacroParsingBehavior, ParseCallbacks,
};
use bindgen::{Builder, CargoCallbacks, EnumVariation, Formatter};
use bindgen::{Builder, EnumVariation, Formatter};
use std::collections::HashSet;
use std::env;
use std::path::PathBuf;
Expand Down Expand Up @@ -234,7 +234,9 @@ fn setup_wrap_static_fns_test() {
// generate external bindings with the external .c and .h files
let bindings = Builder::default()
.header(input_header_file_path_str)
.parse_callbacks(Box::new(CargoCallbacks))
.parse_callbacks(Box::new(
bindgen::CargoCallbacks::new().rerun_on_header_files(true),
))
.parse_callbacks(Box::new(WrappedVaListCallback))
.wrap_static_fns(true)
.wrap_static_fns_path(
Expand Down

0 comments on commit 2d293e6

Please sign in to comment.