From ed5baeafd6eab65541f7b639e593cf23712e93f2 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sun, 2 Jan 2022 04:04:41 -0600 Subject: Remove unused feature flags --- Cargo.toml | 8 +------- src/fuse/mod.rs | 10 +--------- src/lib.rs | 7 ------- 3 files changed, 2 insertions(+), 23 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4ae944a..6041ed9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,15 +3,9 @@ name = "blown-fuse" version = "0.2.0" authors = ["Alejandro Soto "] edition = "2021" -description = "Filesystem in Userspace" +description = "Async filesystem in userspace (FUSE) daemon library" license = "LGPL-3.0-or-later" -[features] -default = ["server", "mount"] -server = [] -mount = ["server"] -client = [] - [dependencies] bitflags = "1.3.2" bytemuck = "1.7.3" diff --git a/src/fuse/mod.rs b/src/fuse/mod.rs index b4c31d0..2e20972 100644 --- a/src/fuse/mod.rs +++ b/src/fuse/mod.rs @@ -2,13 +2,8 @@ use crate::proto; use std::marker::PhantomData; pub mod io; - -#[doc(cfg(feature = "server"))] -pub mod ops; - -#[doc(cfg(feature = "mount"))] pub mod mount; - +pub mod ops; pub mod session; mod private_trait { @@ -22,13 +17,11 @@ pub trait Operation<'o>: private_trait::Sealed + Sized { pub type Op<'o, O = ops::Any> = (Request<'o, O>, Reply<'o, O>); -#[doc(cfg(feature = "server"))] pub struct Request<'o, O: Operation<'o>> { header: proto::InHeader, body: O::RequestBody, } -#[doc(cfg(feature = "server"))] #[must_use] pub struct Reply<'o, O: Operation<'o>> { session: &'o session::Session, @@ -37,7 +30,6 @@ pub struct Reply<'o, O: Operation<'o>> { } #[must_use] -#[doc(cfg(feature = "server"))] pub struct Done<'o>(PhantomData<&'o mut &'o ()>); impl Done<'_> { diff --git a/src/lib.rs b/src/lib.rs index a6e6d36..dcff77c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,19 +12,12 @@ use std::time::{SystemTime, UNIX_EPOCH}; pub use nix; -#[cfg(any(feature = "server", doc))] -#[doc(cfg(feature = "server"))] pub use crate::fuse::*; - -#[cfg(any(feature = "client", doc, test))] -#[doc(cfg(feature = "client"))] pub mod client; mod proto; mod util; -#[cfg(any(feature = "server", doc))] -#[doc(cfg(feature = "server"))] mod fuse; #[doc(no_inline)] -- cgit v1.2.3