summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-01-02 04:04:41 -0600
committerAlejandro Soto <alejandro@34project.org>2022-01-02 04:08:43 -0600
commited5baeafd6eab65541f7b639e593cf23712e93f2 (patch)
treed90e5b278e0a58a66d77193b95be7cd5a383ac28
parentd6dead36761f4731951026f48bc3a8d83260b9e5 (diff)
Remove unused feature flags
-rw-r--r--Cargo.toml8
-rw-r--r--src/fuse/mod.rs10
-rw-r--r--src/lib.rs7
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 <alejandro@34project.org>"]
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)]