From ff69ed2f23264321771d78cce160b96fdc8479d9 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Tue, 16 Apr 2024 06:57:59 +0100 Subject: [PATCH] feat!: split into non-default features fs and network Closes kemitix/kxio#11 --- Cargo.toml | 4 ++++ src/lib.rs | 2 ++ 2 files changed, 6 insertions(+) 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;