Cargo Features

spotifyd = { version = "0.3.5", default-features = false, features = ["alsa_backend", "dbus_keyring", "dbus_mpris", "portaudio_backend", "pulseaudio_backend", "rodio_backend"] }
default = alsa_backend

The alsa_backend feature is set by default whenever spotifyd is added without default-features = false somewhere in the dependency tree.

alsa_backend default = alsa

Enables alsa-backend of librespot-playback

dbus_keyring = keyring
dbus_mpris = dbus, dbus-crossroads, dbus-tokio, rspotify

Enables portaudio-backend of librespot-playback


Enables pulseaudio-backend of librespot-playback


Enables rodio-backend of librespot-playback

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

alsa alsa_backend

Enables alsa ^0.7

dbus dbus_mpris?
dbus-tokio dbus_mpris?
dbus-crossroads dbus_mpris?
keyring dbus_keyring?

With default (linux-secret-service)

rspotify dbus_mpris?

Enables client-ureq and ureq-rustls-tls of rspotify ^0.11.6