Split features into runtime and library

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/4/head
trivernis 3 years ago
parent 957e618d84
commit 01b3a33099

@ -15,18 +15,25 @@ name = "mediarepo"
crate-type = ["lib"] crate-type = ["lib"]
[dependencies] [dependencies]
toml = "0.5.8" toml = {version = "0.5.8", optional=true}
structopt = "0.3.23" structopt = {version="0.3.23", optional=true}
[dependencies.mediarepo-core] [dependencies.mediarepo-core]
path = "./mediarepo-core" path = "./mediarepo-core"
[dependencies.mediarepo-model] [dependencies.mediarepo-model]
path = "./mediarepo-model" path = "./mediarepo-model"
optional=true
[dependencies.mediarepo-socket] [dependencies.mediarepo-socket]
path = "./mediarepo-socket" path = "./mediarepo-socket"
optional=true
[dependencies.tokio] [dependencies.tokio]
version = "1.12.0" version = "1.12.0"
features = ["macros", "rt-multi-thread", "io-std", "io-util"] features = ["macros", "rt-multi-thread", "io-std", "io-util"]
[features]
default = ["runtime"]
runtime = ["toml", "structopt", "mediarepo-model", "mediarepo-socket"]
library = ["mediarepo-socket"]
Loading…
Cancel
Save