Use notify-rust with dbus instead of zbus

This project already uses "dbus" crate; bundling two dbus API
implementations in the ncspot binary doesn't make much sense,
it just increases the binary size.
This commit is contained in:
Jakub Jirutka
2022-01-21 22:41:41 +01:00
committed by Henrik Friedrichsen
parent 4adb57573e
commit ff65cf8a55
2 changed files with 8 additions and 214 deletions

View File

@@ -26,7 +26,6 @@ librespot-core = "0.3.1"
librespot-playback = "0.3.1"
librespot-protocol = "0.3.1"
log = "0.4.13"
notify-rust = { version = "4", optional = true }
serde = "1.0"
serde_json = "1.0"
tokio = { version = "1", features = ["rt-multi-thread", "sync", "time"] }
@@ -58,6 +57,13 @@ features = ["client-ureq", "ureq-rustls-tls"]
version = "0.17.0"
default-features = false
[dependencies.notify-rust]
version = "4"
default-features = false
# Use dbus, which we already depend on, instead of zbus.
features = ["d"]
optional = true
[features]
share_clipboard = ["clipboard"]
wayland_clipboard = ["wl-clipboard-rs"] # Support wayland clipboard - linux only