From d27d4cf7f0254a1189fb6602fb7da749d167585b Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Sat, 5 Oct 2024 22:49:06 -0400 Subject: [PATCH] Fix 'fuse' feature conditional compilation Signed-off-by: Kent Overstreet --- Cargo.toml | 3 +++ src/bcachefs.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 94043ee1..25a42e50 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,6 +9,9 @@ rust-version = "1.77" name = "bcachefs" path = "src/bcachefs.rs" +[features] +fuse = [] + [dependencies] log = { version = "0.4", features = ["std"] } clap = { version = "4.0.32", features = ["derive", "wrap_help"] } diff --git a/src/bcachefs.rs b/src/bcachefs.rs index 0072ca44..de44bf8e 100644 --- a/src/bcachefs.rs +++ b/src/bcachefs.rs @@ -63,7 +63,7 @@ fn handle_c_command(mut argv: Vec, symlink_cmd: Option<&str>) -> i32 { "unlock" => c::cmd_unlock(argc, argv), "version" => c::cmd_version(argc, argv), - #[cfg(fuse)] + #[cfg(feature = "fuse")] "fusemount" => c::cmd_fusemount(argc, argv), _ => {