Skip to content

Commit a188ed3

Browse files
authored
Fix compilation of rust bindings (#166)
1 parent 6c856ac commit a188ed3

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ members = [
44
"src/storage/chunk_engine",
55
"src/lib/rs/hf3fs-usrbio-sys"
66
]
7+
default-members = [
8+
"src/client/trash_cleaner",
9+
"src/storage/chunk_engine",
10+
]
711
resolver = "2"
812

913
[workspace.package]

src/lib/rs/hf3fs-usrbio-sys/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fn main() {
77
println!("cargo::rustc-link-lib=hf3fs_api_shared");
88

99
let bindings = bindgen::Builder::default()
10-
.header("include/hf3fs_usrbio.h")
10+
.header(PathBuf::from(topdir).join("../../api/hf3fs_usrbio.h").display().to_string())
1111
.clang_arg("-std=c99")
1212
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
1313
.generate()

src/lib/rs/hf3fs-usrbio-sys/lib/.dummy

Whitespace-only changes.

0 commit comments

Comments
 (0)