use std::env; use std::error::Error; use std::path::PathBuf; use crate::codegen::bindings::generate_bindings; use crate::codegen::generate_using_registry; mod codegen; pub fn main() -> Result<(), Box> { let out_dir = PathBuf::from(env::var("OUT_DIR")?); generate_bindings(&out_dir.join("bindings.rs"))?; generate_using_registry(&out_dir.join("generated.rs"))?; Ok(()) }