- offline.rs: constructs + owns a per-user OfflineCacheState (same index.db + library.db paths as Tauri, so the offline store is shared across frontends); activated on login/restore, torn down on logout (hooks in auth.rs). - playback.rs: play_audible + the gapless trigger now route through QbzCore's play_track_resolved / fetch_for_gapless_resolved, so an offline-cached track resolves from disk (decrypt -> play_data) before hitting the network. The unlock-animation sink is None for now (padlock lands with the Slice 2 UI). qbz-slint compiles clean. Offline PLAYBACK now works in Slint; the "Make offline" trigger UI + per-row status + the padlock are next (Slice 2). cc
52 lines
1.6 KiB
TOML
52 lines
1.6 KiB
TOML
[package]
|
|
name = "qbz-slint"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
description = "Slint functional MVP shell for QBZ (private branch only)"
|
|
|
|
[[bin]]
|
|
name = "qbz-slint"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
# femtovg renderer, pinned >=1.16 for the femtovg text-rendering fixes
|
|
# (slint-ui/slint #5177 pixel-grid alignment + #11335 0.5px tearing /
|
|
# inconsistent glyph spacing). Skia never received that treatment.
|
|
slint = { version = "1.16", default-features = false, features = [
|
|
"std",
|
|
"backend-winit",
|
|
"renderer-femtovg",
|
|
"renderer-software",
|
|
"accessibility",
|
|
"compat-1-2",
|
|
] }
|
|
log = { workspace = true }
|
|
env_logger = "0.11"
|
|
tokio = { workspace = true }
|
|
async-trait = { workspace = true }
|
|
reqwest = { workspace = true }
|
|
image = { version = "0.25", default-features = false, features = ["jpeg", "png"] }
|
|
urlencoding = "2"
|
|
open = "5"
|
|
arboard = "3"
|
|
rfd = { version = "0.15", default-features = false, features = ["xdg-portal", "tokio"] }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
dirs = "5"
|
|
chrono = { workspace = true, features = ["unstable-locales"] }
|
|
qbz-app = { path = "../qbz-app" }
|
|
qbz-audio = { path = "../qbz-audio" }
|
|
qbz-core = { path = "../qbz-core" }
|
|
qbz-library = { path = "../qbz-library" }
|
|
qbz-offline-cache = { path = "../qbz-offline-cache" }
|
|
qbz-models = { path = "../qbz-models" }
|
|
qbz-integrations = { path = "../qbz-integrations" }
|
|
rusqlite = { version = "0.31", features = ["bundled"] }
|
|
qbz-cache = { path = "../qbz-cache" }
|
|
qbz-credentials = { path = "../qbz-credentials" }
|
|
|
|
[build-dependencies]
|
|
slint-build = "1.16"
|