From 09fcb5eb7b6783d053f091ab7afdd0634693f8bb Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Mon, 6 Apr 2026 09:18:27 -0600 Subject: [PATCH] chore(deps): upgrade alsa crate 0.9 -> 0.10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove dead alsa dependency from src-tauri/Cargo.toml (code lives in qbz-audio since V2 migration) and bump qbz-audio to alsa 0.10. Eliminates duplicate alsa versions in Cargo.lock. Breaking changes in 0.10 (Format/ChmapPosition reorder) do not affect QBZ — we use catch-all matches and never rely on PartialOrd. Closes #260 cc --- crates/qbz-audio/Cargo.toml | 2 +- src-tauri/Cargo.lock | 17 ++--------------- src-tauri/Cargo.toml | 3 --- 3 files changed, 3 insertions(+), 19 deletions(-) diff --git a/crates/qbz-audio/Cargo.toml b/crates/qbz-audio/Cargo.toml index ce5a862ef..7b35eb8a0 100644 --- a/crates/qbz-audio/Cargo.toml +++ b/crates/qbz-audio/Cargo.toml @@ -38,7 +38,7 @@ dirs = "5" [target.'cfg(target_os = "linux")'.dependencies] # ALSA for direct hardware access (bit-perfect) -alsa = "0.9" +alsa = "0.10" [target.'cfg(target_os = "macos")'.dependencies] # CoreAudio for device probing, sample rate switching, and (future) hog mode / exclusive mode diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 0a6a5c97b..91a99b207 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -79,18 +79,6 @@ dependencies = [ "alloc-no-stdlib", ] -[[package]] -name = "alsa" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed7572b7ba83a31e20d1b48970ee402d2e3e0537dcfe0a3ff4d6eb7508617d43" -dependencies = [ - "alsa-sys", - "bitflags 2.11.0", - "cfg-if", - "libc", -] - [[package]] name = "alsa" version = "0.10.0" @@ -1115,7 +1103,7 @@ version = "0.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b1f9c7312f19fc2fa12fd7acaf38de54e8320ba10d1a02dcbe21038def51ccb" dependencies = [ - "alsa 0.10.0", + "alsa", "coreaudio-rs 0.13.0", "dasp_sample", "jni", @@ -4645,7 +4633,7 @@ checksum = "b5a041e753da8b807c9255f28de81879c78c876392ff2469cde94799b2896b9d" name = "qbz-audio" version = "0.1.0" dependencies = [ - "alsa 0.9.1", + "alsa", "async-trait", "coreaudio-rs 0.14.1", "dirs 5.0.1", @@ -4753,7 +4741,6 @@ name = "qbz-nix" version = "1.2.2" dependencies = [ "aes-gcm", - "alsa 0.9.1", "anyhow", "ashpd", "async-trait", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 6e5107811..f86d94bcc 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -147,9 +147,6 @@ tauri-plugin-dialog = { version = "2.6.0" } ashpd = { version = "0.13", default-features = false, features = ["tokio", "notification", "inhibit"] } mupdf = { version = "0.6", features = ["sys-lib-zlib", "sys-lib-harfbuzz", "sys-lib-freetype"] } -# Direct ALSA access for bit-perfect playback (bypasses CPAL limitations) -alsa = "0.9" - [target.'cfg(target_os = "macos")'.dependencies] tauri-plugin-dialog = { version = "2.6.0" } notify-rust = "4.13.0"