diff --git a/Cargo.toml b/Cargo.toml index 6b3a1d2..f942101 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,6 +8,10 @@ license = "MIT" repository = "https://git.kemitix.net/kemitix/kxio" exclude = [".cargo_home"] +[features] +fs = [] +network = [] + # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] diff --git a/src/lib.rs b/src/lib.rs index b4cb65a..b8d834d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,2 +1,4 @@ +#[cfg(feature = "fs")] pub mod filesystem; +#[cfg(feature = "network")] pub mod network;