Implements owner requirement 2 (03-setup-tui.md): `qbzd setup`, a six-screen raspi-config-grade configurator over the daemon's real stores — zero new persistence. ratatui 0.30 (IV5: unifies on the lock's unicode-width 0.2.2; 0.29 forbidden). A synchronous event loop on a blocking thread; disk/HTTP only at screen entry, `r`, save and the immediate actions, on workers with a spinner (no I/O on keystrokes). Non-tty exits 2 with the verbatim copy; alt-screen + panic-hook restore. Screens: Account (T5 login engine; inline masked token paste, suspend-and-run browser login, logout confirm), Audio (the §3.2.3 constraint matrix + 7 cascades verified 1:1 vs the desktop code, device picker re-deriving the §3.2.2 grouping/BP-badge rules, DSD guard), Playback (ask->fallback rule, infinite-radio read-only), QConnect (startup/name/volume_mode, live preview), Network (whole-file qbzd.toml rewrite preserving every key), Import/Export (pure renderer of the T12 bundle plan; interactive device re-pick; default-off auth gate). Saves reuse T11 write_one + reload/status classification (§4.3); dirty marker + Save/Discard/Stay. All user-facing strings centralized. cc
55 lines
2.3 KiB
TOML
55 lines
2.3 KiB
TOML
[package]
|
|
name = "qbzd"
|
|
version.workspace = true
|
|
edition = "2021"
|
|
description = "QBZ headless Qobuz playback daemon (daemon + CLI + setup TUI in one binary)"
|
|
license = "MIT"
|
|
|
|
[[bin]]
|
|
name = "qbzd"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
# workspace crates — the slint-free column ONLY (01-architecture.md §1.2)
|
|
qbz-models = { path = "../qbz-models" }
|
|
qbz-app = { path = "../qbz-app" }
|
|
qbz-core = { path = "../qbz-core" }
|
|
qbz-player = { path = "../qbz-player" }
|
|
qbz-audio = { path = "../qbz-audio" } # PROTECTED — read-only consumer
|
|
qbz-qobuz = { path = "../qbz-qobuz" }
|
|
qbz-credentials = { path = "../qbz-credentials" }
|
|
qbz-log = { path = "../qbz-log" }
|
|
qconnect-core = { path = "../qconnect-core" }
|
|
qconnect-protocol = { path = "../qconnect-protocol" }
|
|
qconnect-transport-ws = { path = "../qconnect-transport-ws" }
|
|
qconnect-app = { path = "../qconnect-app" }
|
|
# runtime / wire
|
|
tokio = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
reqwest = { workspace = true }
|
|
dirs = "6"
|
|
rand = { workspace = true }
|
|
log = { workspace = true }
|
|
async-trait = { workspace = true }
|
|
# QConnect glue copies (T9) — mirror the desktop copies' direct imports
|
|
uuid = { version = "1", features = ["v4"] } # renderer-report action uuids
|
|
rusqlite = { version = "0.31", features = ["bundled"] } # daemon-root qconnect_settings.db KV
|
|
futures-util = { workspace = true } # remote_stream.rs feeder (byte-exact)
|
|
# new direct deps (versions already in lock where noted)
|
|
tiny_http = "0.12" # in lock via qbz-cast
|
|
toml = "0.9" # in lock transitively
|
|
libc = "0.2" # flock
|
|
urlencoding = "2" # OAuth redirect_url encode + callback decode (in lock via qbz)
|
|
open = "5" # system-browser launch for `qbzd login` (in lock via qbz)
|
|
clap = { version = "4", features = ["derive"] }
|
|
clap_complete = "4"
|
|
# T13 setup TUI. ratatui 0.30 (NEVER 0.29 — 0.29 pins unicode-width "=0.2.0",
|
|
# unresolvable against Slint's annotate-snippets 0.12.16 which needs >=0.2.2;
|
|
# ratatui-core 0.30 accepts >=0.2.0,<=0.2.2 → unifies on the lock's 0.2.2, IV5).
|
|
# The `crossterm` backend is a DEFAULT feature; re-exported as ratatui::crossterm.
|
|
ratatui = "0.30"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|