File tree Expand file tree Collapse file tree 3 files changed +18
-7
lines changed
Expand file tree Collapse file tree 3 files changed +18
-7
lines changed Original file line number Diff line number Diff line change 2424
2525env :
2626 # MSRV varies by backend due to platform-specific dependencies
27- MSRV_AAUDIO : " 1.82 "
28- MSRV_ALSA : " 1.82 "
29- MSRV_COREAUDIO : " 1.80 "
27+ MSRV_AAUDIO : " 1.85 "
28+ MSRV_ALSA : " 1.85 "
29+ MSRV_COREAUDIO : " 1.82 "
3030 MSRV_JACK : " 1.82"
31- MSRV_WASIP1 : " 1.78 "
31+ MSRV_WASIP1 : " 1.82 "
3232 MSRV_WASM : " 1.82"
3333 MSRV_WINDOWS : " 1.82"
3434
@@ -65,13 +65,13 @@ jobs:
6565 platform-msrv : ${{ env.MSRV_ALSA }}
6666 jack-msrv : ${{ env.MSRV_JACK }}
6767
68- - name : Install Rust MSRV (${{ env.MSRV_ALSA }})
68+ - name : Install Rust MSRV (${{ env.MSRV_PIPEWIRE }})
6969 uses : dtolnay/rust-toolchain@master
7070 with :
7171 toolchain : ${{ env.MSRV_ALSA }}
7272
7373 - name : Install Rust MSRV (${{ steps.msrv.outputs.all-features }})
74- if : steps.msrv.outputs.all-features != env.MSRV_ALSA
74+ if : steps.msrv.outputs.all-features != env.MSRV_PIPEWIRE
7575 uses : dtolnay/rust-toolchain@master
7676 with :
7777 toolchain : ${{ steps.msrv.outputs.all-features }}
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ audioworklet = [
5454# Platform: All platforms
5555custom = []
5656
57- default = [" pipewire " ]
57+ default = []
5858
5959[dependencies ]
6060dasp_sample = " 0.11"
Original file line number Diff line number Diff line change @@ -73,6 +73,17 @@ fn main() -> Result<(), anyhow::Error> {
7373 } else {
7474 cpal:: default_host ( )
7575 } ;
76+
77+ // Conditionally compile with jack if the feature is specified.
78+ #[ cfg( all(
79+ any(
80+ target_os = "linux" ,
81+ target_os = "dragonfly" ,
82+ target_os = "freebsd" ,
83+ target_os = "netbsd"
84+ ) ,
85+ feature = "pipewire"
86+ ) ) ]
7687 // Manually check for flags. Can be passed through cargo with -- e.g.
7788 // cargo run --release --example record_wav --features pipewire -- -- pipewire
7889 let host = if opt. pipewire {
You can’t perform that action at this time.
0 commit comments