fn main() {
println!("cargo:rerun-if-changed=build.rs");
let out_path = std::path::PathBuf::from(std::env::var("OUT_DIR").unwrap());
bindgen::builder()
.header("io_uring.h")
.allowlist_file("io_uring.h")
.use_core()
.anon_fields_prefix("anon")
.default_enum_style(bindgen::EnumVariation::ModuleConsts)
.default_non_copy_union_style(bindgen::NonCopyUnionStyle::ManuallyDrop)
.generate()
.unwrap()
.write_to_file(out_path.join("bindings.rs"))
.unwrap();
}