From ac26f2079bbb3ca30d6b9818d24b8ccf87845f39 Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Sat, 14 Feb 2026 22:07:30 -0600 Subject: [PATCH] chore: mark legacy player and queue modules as deprecated Added DEPRECATED headers to src-tauri/src/player/mod.rs and src-tauri/src/queue/mod.rs indicating these will be removed after migration to qbz-player crate is complete. New code should use: - qbz_player::Player (via CoreBridge -> QbzCore) - qbz_player::QueueManager (via CoreBridge -> QbzCore) --- src-tauri/src/player/mod.rs | 19 +++++++++++++++++++ src-tauri/src/queue/mod.rs | 18 ++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/src-tauri/src/player/mod.rs b/src-tauri/src/player/mod.rs index 893995fef..f152f7a1b 100644 --- a/src-tauri/src/player/mod.rs +++ b/src-tauri/src/player/mod.rs @@ -1,5 +1,24 @@ //! Audio player module //! +//! # DEPRECATED - LEGACY CODE +//! +//! **This module is deprecated and will be removed.** +//! +//! Use `qbz-player` crate instead. The V2 architecture routes playback through: +//! - `CoreBridge` -> `QbzCore` -> `qbz_player::Player` +//! +//! This legacy module remains only as emergency fallback during migration. +//! Do NOT add new functionality here. All new playback code goes to `qbz-player`. +//! +//! ## Migration Status +//! - [x] Player struct exists in qbz-player +//! - [x] CoreBridge creates Player from qbz-player +//! - [x] V2 playback commands use CoreBridge +//! - [ ] play_track V2 command (in progress) +//! - [ ] Full frontend migration to V2 commands +//! +//! --- +//! //! Handles audio playback with support for: //! - HTTP streaming from Qobuz //! - FLAC, MP3 decoding via symphonia diff --git a/src-tauri/src/queue/mod.rs b/src-tauri/src/queue/mod.rs index 42103f6e5..2b12fe7f5 100644 --- a/src-tauri/src/queue/mod.rs +++ b/src-tauri/src/queue/mod.rs @@ -1,5 +1,23 @@ //! Queue management module //! +//! # DEPRECATED - LEGACY CODE +//! +//! **This module is deprecated and will be removed.** +//! +//! Use `qbz-player::QueueManager` instead. The V2 architecture routes queue ops through: +//! - `CoreBridge` -> `QbzCore` -> `qbz_player::QueueManager` +//! +//! This legacy module remains only as emergency fallback during migration. +//! Do NOT add new functionality here. All new queue code goes to `qbz-player`. +//! +//! ## Migration Status +//! - [x] QueueManager exists in qbz-player +//! - [x] QbzCore uses qbz_player::QueueManager +//! - [x] V2 queue commands use CoreBridge +//! - [ ] Full frontend migration to V2 commands +//! +//! --- +//! //! Handles playback queue with: //! - Queue manipulation (add, remove, reorder, clear) //! - Current track tracking