config: Make YAML/JSON modular and optional (#21)

This commit is contained in:
Sergey Smirnykh
2019-10-02 16:21:39 +02:00
committed by Kenny Levinsen
parent c02937d8b6
commit c695288d1e
4 changed files with 119 additions and 35 deletions
+8 -4
View File
@@ -8,12 +8,15 @@ edition = "2018"
lto = "fat"
[features]
default = ["alsa-widget", "pulseaudio-widget"]
default = ["alsa-widget", "pulseaudio-widget", "yaml-cfg", "json-cfg"]
damage_debug = []
yaml-cfg = ["serde_yaml"]
json-cfg = ["serde_json"]
alsa-widget = ["alsa"]
pulseaudio-widget = ["libpulse-binding"]
[dependencies]
smithay-client-toolkit = "0.6.4"
byteorder = "1.3"
@@ -30,9 +33,10 @@ lazy_static = "1.4"
rcalc_lib = { version = "0.9" }
rust-ini = "0.13"
shlex = "0.1"
serde_json = "1.0"
serde_yaml = "0.8"
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0", optional = true }
serde_yaml = { version = "0.8", optional = true }
libpulse-binding = { version = "2.11", optional = true }
alsa = { version = "0.3.0", optional = true }