summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-10-05 22:49:06 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2024-10-05 22:49:27 -0400
commitd27d4cf7f0254a1189fb6602fb7da749d167585b (patch)
treead146f42b73ddfb3748798ed58e54d27fc5e7a68
parent3829e49167eebfb763217b464c98f075ba78a06e (diff)
Fix 'fuse' feature conditional compilation
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r--Cargo.toml3
-rw-r--r--src/bcachefs.rs2
2 files changed, 4 insertions, 1 deletions
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<String>, 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),
_ => {