Cargo Features

[dependencies]
librespot = { version = "0.4.2", default-features = false, features = ["alsa-backend", "portaudio-backend", "pulseaudio-backend", "jackaudio-backend", "rodio-backend", "rodiojack-backend", "sdl-backend", "gstreamer-backend", "with-dns-sd"] }
default = rodio-backend

The rodio-backend feature is set by default whenever librespot is added without default-features = false somewhere in the dependency tree.

alsa-backend

Enables alsa-backend of librespot-playback

portaudio-backend

Enables portaudio-backend of librespot-playback

pulseaudio-backend

Enables pulseaudio-backend of librespot-playback

jackaudio-backend

Enables jackaudio-backend of librespot-playback

rodio-backend default

Enables rodio-backend of librespot-playback

rodiojack-backend

Enables rodiojack-backend of librespot-playback

sdl-backend

Enables sdl-backend of librespot-playback

gstreamer-backend

Enables gstreamer-backend of librespot-playback

with-dns-sd

Enables with-dns-sd of librespot-discovery

Librespot has 10 features without comments.