add feature flag for song notifications

enables users/distributions to ship without dbus dependency
This commit is contained in:
Henrik Friedrichsen
2020-09-07 23:50:45 +02:00
parent 69f11cdcf7
commit 3893a6f5a0
2 changed files with 6 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ librespot-core = "0.1.3"
librespot-playback = "0.1.3"
librespot-protocol = "0.1.3"
log = "0.4.0"
notify-rust = "4"
notify-rust = { version = "4", optional = true }
rspotify = { version = "0.10.0", features = ["blocking"] }
serde = "1.0"
serde_json = "1.0"
@@ -57,4 +57,5 @@ rodio_backend = ["librespot-playback/rodio-backend"]
portaudio_backend = ["librespot-playback/portaudio-backend"]
termion_backend = ["cursive/termion-backend"]
mpris = ["dbus"]
default = ["share_clipboard", "pulseaudio_backend", "mpris", "cursive/pancurses-backend"]
notify = ["notify-rust"]
default = ["share_clipboard", "pulseaudio_backend", "mpris", "notify", "cursive/pancurses-backend"]