Skip to content

Commit 8f79926

Browse files
Fix: Add missing feature for with-avahi feature (#1600)
* fix: add missing feature for Anahi * ci: Add feature check for discovery backends Fixes and prevents regression of missing feature dependencies in discovery backends (with-avahi, with-dns-sd, with-libmdns). This check ensures all feature combinations compile correctly on Linux where the native dependencies are available. --------- Co-authored-by: Roderick van Domburg <[email protected]>
1 parent 194c531 commit 8f79926

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ jobs:
8989
--include-features rustls-tls-native-roots
9090
--exclude-features native-tls,rustls-tls-webpki-roots
9191
92+
- name: Check discovery features (Linux only)
93+
if: runner.os == 'Linux'
94+
run: >
95+
cargo hack check -p librespot-discovery --each-feature --exclude-all-features
96+
--include-features native-tls
97+
--exclude-features rustls-tls-native-roots,rustls-tls-webpki-roots
98+
9299
- name: Build binary with default features
93100
run: cargo build --frozen
94101

discovery/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ edition.workspace = true
1313
default = ["with-libmdns", "native-tls"]
1414

1515
# Discovery backends
16-
with-avahi = ["dep:serde", "dep:zbus"]
16+
with-avahi = ["dep:serde", "dep:zbus", "futures-util/async-await-macro"]
1717
with-dns-sd = ["dep:dns-sd"]
1818
with-libmdns = ["dep:libmdns"]
1919

0 commit comments

Comments
 (0)