Open
Description
I think you are missing a .parse_callbacks(Box::new(bindgen::CargoCallbacks))
when you're making the builder, like so:
// Generate libui bindings on the fly
let bindings = BindgenBuilder::default()
.header("wrapper.h")
.opaque_type("max_align_t") // For some reason this ends up too large
//.rustified_enum(".*")
.trust_clang_mangling(false) // clang sometimes wants to treat these functions as C++
.parse_callbacks(Box::new(bindgen::CargoCallbacks)) // HERE
.generate()
.expect("Unable to generate bindings");
You're also missing some println!("cargo:rerun-if-changed={}", src_path(filename))
all over the place after you do base_config.file(src_path(filename))
.