forked from thoughtpolice/bcachefs-tools
-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This moves the main() function from C to Rust. It also updates the name of the Rust package from "bcachefs-rust" to "bcachefs-tools". Signed-off-by: Thomas Bertschinger <tahbertschinger@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
- Loading branch information
1 parent
249bf7b
commit 0a284fc
Showing
16 changed files
with
173 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
fn main() { | ||
println!("cargo:rustc-link-search=.."); | ||
println!("cargo:rerun-if-changed=../libbcachefs.a"); | ||
println!("cargo:rustc-link-lib=static:+whole-archive=bcachefs"); | ||
|
||
println!("cargo:rustc-link-lib=urcu"); | ||
println!("cargo:rustc-link-lib=zstd"); | ||
println!("cargo:rustc-link-lib=blkid"); | ||
println!("cargo:rustc-link-lib=uuid"); | ||
println!("cargo:rustc-link-lib=sodium"); | ||
println!("cargo:rustc-link-lib=z"); | ||
println!("cargo:rustc-link-lib=lz4"); | ||
println!("cargo:rustc-link-lib=zstd"); | ||
println!("cargo:rustc-link-lib=udev"); | ||
println!("cargo:rustc-link-lib=keyutils"); | ||
println!("cargo:rustc-link-lib=aio"); | ||
|
||
if std::env::var("BCACHEFS_FUSE").is_ok() { | ||
println!("cargo:rustc-link-lib=fuse3"); | ||
} | ||
} |
Oops, something went wrong.