From 0a284fc4ffcbb46f0a4b921415ef12a9c75fa05c Mon Sep 17 00:00:00 2001 From: Thomas Bertschinger Date: Mon, 15 Jan 2024 23:41:00 -0700 Subject: convert main() from C to Rust 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 Signed-off-by: Kent Overstreet --- rust-src/Cargo.toml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'rust-src/Cargo.toml') diff --git a/rust-src/Cargo.toml b/rust-src/Cargo.toml index 061d0641..2786fc76 100644 --- a/rust-src/Cargo.toml +++ b/rust-src/Cargo.toml @@ -1,12 +1,16 @@ [package] -name = "bcachefs-rust" +name = "bcachefs-tools" version = "0.3.1" authors = ["Yuxuan Shui ", "Kayla Firestack ", "Kent Overstreet " ] edition = "2021" rust-version = "1.65" +[[bin]] +name = "bcachefs" +path = "src/bcachefs.rs" + [lib] -crate-type = ["staticlib"] +name = "bcachefs" [dependencies] atty = "0.2.14" -- cgit v1.2.3