[GH-ISSUE #706] Feature flag for no backend #399

Closed
opened 2026-02-27 19:30:24 +03:00 by kerem · 5 comments
Owner

Originally created by @codetheweb on GitHub (Apr 22, 2021).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/706

This may seem like a bit of an odd request, but would it be possible to add a feature flag for no backend? My use case is that I'm piping the output from librespot somewhere else and don't need alsa / Pulse / whatever.

Originally created by @codetheweb on GitHub (Apr 22, 2021). Original GitHub issue: https://github.com/librespot-org/librespot/issues/706 This may seem like a bit of an odd request, but would it be possible to add a feature flag for no backend? My use case is that I'm piping the output from librespot somewhere else and don't need alsa / Pulse / whatever.
kerem closed this issue 2026-02-27 19:30:24 +03:00
Author
Owner

@ashthespy commented on GitHub (Apr 22, 2021):

So backend pipe?

Should be possible.. Open up a PR?
We have a few feature flags already, what is one more ;-)

<!-- gh-comment-id:825103048 --> @ashthespy commented on GitHub (Apr 22, 2021): So backend `pipe`? Should be possible.. Open up a PR? We have a few feature flags already, what is one more ;-)
Author
Owner

@codetheweb commented on GitHub (Apr 22, 2021):

Ok, I'm not super familiar with how Cargo works yet.

Would that just entail adding pipe-backend = [""] here?

<!-- gh-comment-id:825108354 --> @codetheweb commented on GitHub (Apr 22, 2021): Ok, I'm not super familiar with how Cargo works yet. Would that just entail adding `pipe-backend = [""]` [here](https://github.com/librespot-org/librespot/blob/7b537550eada598076c853484e074f8e0ba9f140/Cargo.toml#L76)?
Author
Owner

@shanemeagher commented on GitHub (Apr 22, 2021):

Would compiling with --no-default-features do?
https://github.com/librespot-org/librespot/wiki/Compiling#optional-features

Edit: I'm assuming you want to compile with minimal features?

<!-- gh-comment-id:825123257 --> @shanemeagher commented on GitHub (Apr 22, 2021): Would compiling with `--no-default-features` do? https://github.com/librespot-org/librespot/wiki/Compiling#optional-features Edit: I'm assuming you want to compile with minimal features?
Author
Owner

@codetheweb commented on GitHub (Apr 22, 2021):

Thank you, that does the trick.
Like I said, still new to the ecosystem. :)

<!-- gh-comment-id:825144805 --> @codetheweb commented on GitHub (Apr 22, 2021): Thank you, that does the trick. Like I said, still new to the ecosystem. :)
Author
Owner

@ashthespy commented on GitHub (Apr 22, 2021):

Doh. I knew i was forgetting something. Sorry for the noise!

<!-- gh-comment-id:825171192 --> @ashthespy commented on GitHub (Apr 22, 2021): Doh. I knew i was forgetting something. Sorry for the noise!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#399
No description provided.