Move the Plex LAN client, hand-rolled XML metadata parsing, and the SQLite plex_cache.db logic out of src-tauri/src/plex/mod.rs into a new qbz-plex core crate so it can be shared by every frontend (Tauri, Slint, TUI) per ADR-006. Plex previously lived entirely in src-tauri (~1715 lines), which blocked the Slint Local Library port from shipping Plex. The extraction is mechanical: the module was already almost entirely plain Rust (reqwest + rusqlite + serde + hand-rolled XML). The only Tauri coupling was a dead plex_play_track command bound to AppState (unreferenced; the live path is commands_v2::v2_plex_play_track, which calls plex_resolve_track_media + AppState.player itself). That dead fn and the vestigial #[tauri::command] attributes are dropped. src-tauri/src/plex/mod.rs becomes a `pub use qbz_plex::*;` re-export so every existing crate::plex::* call site compiles unchanged. Full Tauri workspace cargo check stays green; qbz-plex tests pass. cc
71 lines
1.3 KiB
TOML
71 lines
1.3 KiB
TOML
[workspace]
|
|
resolver = "2"
|
|
|
|
members = [
|
|
"qbz-app",
|
|
"qbz-models",
|
|
"qbz-audio",
|
|
"qbz-player",
|
|
"qbz-qobuz",
|
|
"qbz-radio",
|
|
"qbz-core",
|
|
"qbz-integrations",
|
|
"qbz-cache",
|
|
"qbz-library",
|
|
"qbz-cast",
|
|
"qbz-cmaf",
|
|
"qbz-secrets",
|
|
"qbz-offline-cache",
|
|
"qbz-plex",
|
|
"qconnect-core",
|
|
"qconnect-protocol",
|
|
"qconnect-transport-ws",
|
|
"qconnect-app",
|
|
"qbz-slint",
|
|
"qbz-credentials",
|
|
]
|
|
|
|
[workspace.package]
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
license = "MIT"
|
|
repository = "https://github.com/vicrodh/qbz"
|
|
|
|
[workspace.dependencies]
|
|
# Async runtime
|
|
tokio = { version = "1", features = ["full"] }
|
|
async-trait = "0.1"
|
|
futures-util = "0.3"
|
|
tokio-stream = { version = "0.1", features = ["sync"] }
|
|
|
|
# Serialization
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
|
|
# HTTP
|
|
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls", "cookies", "stream"] }
|
|
|
|
# Logging
|
|
log = "0.4"
|
|
tracing = "0.1"
|
|
|
|
# Error handling
|
|
thiserror = "2"
|
|
anyhow = "1"
|
|
|
|
# Crypto (Qobuz auth)
|
|
md-5 = "0.10"
|
|
base64 = "0.22"
|
|
|
|
# Time
|
|
chrono = "0.4"
|
|
|
|
# Regex
|
|
regex = "1"
|
|
|
|
# Audio
|
|
symphonia = { version = "0.5", features = ["all"] }
|
|
|
|
# Note: Linux-specific dependencies (alsa) go in individual crate Cargo.toml files
|
|
# because workspace manifests cannot have [target] sections
|