mirror of
https://github.com/deepseek-ai/3FS
synced 2025-05-09 15:10:33 +00:00
Fix compilation of rust bindings (#166)
This commit is contained in:
parent
6c856acb4b
commit
a188ed39ec
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -1,6 +1,6 @@
|
||||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
version = 4
|
||||
|
||||
[[package]]
|
||||
name = "aho-corasick"
|
||||
|
@ -4,6 +4,10 @@ members = [
|
||||
"src/storage/chunk_engine",
|
||||
"src/lib/rs/hf3fs-usrbio-sys"
|
||||
]
|
||||
default-members = [
|
||||
"src/client/trash_cleaner",
|
||||
"src/storage/chunk_engine",
|
||||
]
|
||||
resolver = "2"
|
||||
|
||||
[workspace.package]
|
||||
|
@ -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()
|
||||
|
0
src/lib/rs/hf3fs-usrbio-sys/lib/.dummy
Normal file
0
src/lib/rs/hf3fs-usrbio-sys/lib/.dummy
Normal file
Loading…
Reference in New Issue
Block a user