From 01b3a3309955fb47a4b890a2e590ba99b5c67638 Mon Sep 17 00:00:00 2001 From: trivernis Date: Sun, 10 Oct 2021 11:10:38 +0200 Subject: [PATCH] Split features into runtime and library Signed-off-by: trivernis --- mediarepo-daemon/Cargo.toml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/mediarepo-daemon/Cargo.toml b/mediarepo-daemon/Cargo.toml index c85e78d..4ef28cf 100644 --- a/mediarepo-daemon/Cargo.toml +++ b/mediarepo-daemon/Cargo.toml @@ -15,18 +15,25 @@ name = "mediarepo" crate-type = ["lib"] [dependencies] -toml = "0.5.8" -structopt = "0.3.23" +toml = {version = "0.5.8", optional=true} +structopt = {version="0.3.23", optional=true} [dependencies.mediarepo-core] path = "./mediarepo-core" [dependencies.mediarepo-model] path = "./mediarepo-model" +optional=true [dependencies.mediarepo-socket] path = "./mediarepo-socket" +optional=true [dependencies.tokio] version = "1.12.0" -features = ["macros", "rt-multi-thread", "io-std", "io-util"] \ No newline at end of file +features = ["macros", "rt-multi-thread", "io-std", "io-util"] + +[features] +default = ["runtime"] +runtime = ["toml", "structopt", "mediarepo-model", "mediarepo-socket"] +library = ["mediarepo-socket"] \ No newline at end of file