feat: added header file for communicating config
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
use std::{env, path::Path};
|
||||
|
||||
fn main() {
|
||||
let out_dir = env::var_os("OUT_DIR").unwrap();
|
||||
|
||||
let dest_bindings = Path::new(&out_dir).join("bindings.rs");
|
||||
|
||||
bindgen::Builder::default()
|
||||
.header("../unix-loader/src/abi.h")
|
||||
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
|
||||
.generate()
|
||||
.expect("unable to generate bindings")
|
||||
.write_to_file(dest_bindings)
|
||||
.expect("could not write bidnings");
|
||||
}
|
||||
Reference in New Issue
Block a user