Skip to content

Commit

Permalink
docs: recommend at least one audio and discovery backend (#1390)
Browse files Browse the repository at this point in the history
  • Loading branch information
roderickvd committed Nov 3, 2024
1 parent e2eca65 commit 82076e8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions COMPILING.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,17 @@ You will most likely want to build debug builds when developing, as they compile

There are also a number of compiler feature flags that you can add, in the event that you want to have certain additional features also compiled. The list of these is available on the [wiki](https://github.com/librespot-org/librespot/wiki/Compiling#addition-features).

By default, librespot compiles with the ```rodio-backend``` feature. To compile without default features, you can run with:
By default, librespot compiles with the ```rodio-backend``` and ```with-libmdns``` features. To compile without default features, you can run with:

```bash
cargo build --no-default-features
```

Similarly, to build with the ALSA backend:
Note that this will also disable zeroconf discovery backends for Spotify Connect. For normal use cases, select at least one audio and discovery backend.
For example, to build with the ALSA audio and libmdns discovery backend:

```bash
cargo build --no-default-features --features "alsa-backend"
cargo build --no-default-features --features "alsa-backend with-libmdns"
```

### Running
Expand Down

0 comments on commit 82076e8

Please sign in to comment.