erofs-utils: rust: add rust version fuse program
PATCH 1/1 erofs-utils: rust: add rust version fuse program
This patch adds new configure script for checking cross-compiling rustc/cargo/rustup and build erofsfuse Rust version fuse based on autotools. The Xattr feature hasn't been completed yet.
The program is the same copy from erofs-rs repo[1]
[1]: https://github.com/ToolmanP/erofs-rs
Signed-off-by Yiyang Wu <[email protected]>
--- Makefile.am | 5 + configure.ac | 48 ++++- rust/fuse/Cargo.lock | 359 ++++++++++++++++++++++++++++++++++++++ rust/fuse/Cargo.toml | 9 + rust/fuse/Makefile.am | 14 ++ rust/fuse/src/main.rs | 394 ++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 828 insertions(+), 1 deletion(-) create mode 100644 rust/fuse/Cargo.lock create mode 100644 rust/fuse/Cargo.toml create mode 100644 rust/fuse/Makefile.am create mode 100644 rust/fuse/src/main.rs
Makefile.am +5 -0
@@ -3,6 +3,11 @@ ACLOCAL_AMFLAGS = -I m4 SUBDIRS = man lib mkfs dump fsck + if ENABLE_FUSE +if ENABLE_RUST +SUBDIRS += rust/fuse +else SUBDIRS += fuse endif +endif
configure.ac +47 -1
76 lines not on this page · raw message
rust/fuse/Cargo.lock new file +359 -0
359 lines not on this page · raw message
rust/fuse/Cargo.toml new file +9 -0
@@ -0,0 +1,9 @@ +[package] +name = "erofsfuse" +version = "0.1.0" +edition = "2021" + +[dependencies] +fuser = "0.11" +erofs-sys = { git = "https://github.com/ToolmanP/erofs-rs.git" } +clap = { version = "4", features = ["derive", "cargo"] }
rust/fuse/Makefile.am new file +14 -0
@@ -0,0 +1,14 @@ +AUTOMAKE_OPTIONS = foreign + +EXTRA_PROGRAMS = target/$(RUSTC_TARGET)/$(RUSTC_MODE)/erofsfuse +EXTRA_DIST = src/main.rs Cargo.toml Cargo.lock + +all-local: + $(CARGO) build -vvv --$(RUSTC_MODE) --target $(RUSTC_TARGET) + +install-exec-local: + $(MKDIR_P) $(DESTDIR)$(bindir) + $(INSTALL_PROGRAM) target/$(RUSTC_TARGET)/$(RUSTC_MODE)/erofsfuse-rs $(DESTDIR)$(bindir)/erofsfuse + +clean-local: + $(CARGO) clean
rust/fuse/src/main.rs new file +394 -0
394 lines not on this page · raw message
Signature · 1 line
2.46.1