extern crate bindgen; use std::env; use std::path::PathBuf; fn main() { let out_path = PathBuf::from(env::var("OUT_DIR").unwrap()); ::bindgen::Builder::default() .use_core().ctypes_prefix("::libc") .header(concat!(env!("VULKAN_PATH"), "/include/vulkan/vulkan.h")) .generate().ok() .and_then(|bs| bs.write_to_file(out_path.join("raw.rs")).ok()) .unwrap(); }