Fix compilation of rust bindings (#166)

This commit is contained in:
SF-Zhou
2025-03-13 11:32:15 +08:00
committed by GitHub
parent 6c856acb4b
commit a188ed39ec
4 changed files with 6 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ fn main() {
println!("cargo::rustc-link-lib=hf3fs_api_shared");
let bindings = bindgen::Builder::default()
.header("include/hf3fs_usrbio.h")
.header(PathBuf::from(topdir).join("../../api/hf3fs_usrbio.h").display().to_string())
.clang_arg("-std=c99")
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
.generate()

View File