Fix 'fuse' feature conditional compilation

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2024-10-05 22:49:06 -04:00
parent 3829e49167
commit d27d4cf7f0
2 changed files with 4 additions and 1 deletions

View File

@ -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"] }

View File

@ -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),
_ => {