Skip to content

Commit

Permalink
Fix 'fuse' feature conditional compilation
Browse files Browse the repository at this point in the history
Signed-off-by: Kent Overstreet <[email protected]>
  • Loading branch information
Kent Overstreet committed Oct 6, 2024
1 parent 3829e49 commit d27d4cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
2 changes: 1 addition & 1 deletion src/bcachefs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),

_ => {
Expand Down

0 comments on commit d27d4cf

Please sign in to comment.