fn main() {
println!("cargo:rerun-if-changed=src/lib.rs");
println!("cargo:rerun-if-changed=cbindgen.toml");
let crate_dir = std::env::var("CARGO_MANIFEST_DIR").unwrap_or_default();
if let Ok(bindings) = cbindgen::generate(&crate_dir) {
let out_path = std::path::Path::new(&crate_dir).join("include").join("urlx.h");
let _ = bindings.write_to_file(out_path);
}
}