Cover art now goes through the QBZ image cache instead of being downloaded directly every time, matching the Tauri behavior. - Moves ImageCacheService / ImageCacheStats into the qbz-cache crate (LRU disk cache, MD5-keyed, SQLite index). src-tauri/image_cache.rs re-exports it and keeps the Tauri managed-state wrapper, so the Tauri app stays behavior-identical and both shells share one implementation and one on-disk cache (~/.cache/qbz/images). - qbz-slint artwork.rs checks the cache first, downloads and stores on a miss, and trims the cache to 200MB on startup. cc
30 lines
724 B
TOML
30 lines
724 B
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]
|
|
slint = "1"
|
|
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"
|
|
qbz-app = { path = "../qbz-app" }
|
|
qbz-core = { path = "../qbz-core" }
|
|
qbz-models = { path = "../qbz-models" }
|
|
qbz-cache = { path = "../qbz-cache" }
|
|
|
|
[build-dependencies]
|
|
slint-build = "1"
|