feat(library): add sqlite-backed library sync and stats

BREAKING CHANGE: Library data is now stored in a database and will require an initial sync. Existing in-memory library data is no longer used.
This commit is contained in:
2025-10-01 20:02:57 -04:00
parent bdfd245b4e
commit 8391897f54
10 changed files with 783 additions and 19 deletions

15
src-tauri/Cargo.lock generated
View File

@@ -2247,6 +2247,7 @@ version = "0.30.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2e99fb7a497b1e3339bc746195567ed8d3e24945ecd636e3619d20b9de9e9149"
dependencies = [
"cc",
"pkg-config",
"vcpkg",
]
@@ -4153,6 +4154,8 @@ dependencies = [
"smallvec",
"thiserror 2.0.17",
"time",
"tokio",
"tokio-stream",
"tracing",
"url",
]
@@ -4191,6 +4194,7 @@ dependencies = [
"sqlx-postgres",
"sqlx-sqlite",
"syn 2.0.106",
"tokio",
"url",
]
@@ -5019,6 +5023,17 @@ dependencies = [
"tokio",
]
[[package]]
name = "tokio-stream"
version = "0.1.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eca58d7bba4a75707817a2c44174253f9236b2d5fbd055602e9d5c07c139a047"
dependencies = [
"futures-core",
"pin-project-lite",
"tokio",
]
[[package]]
name = "tokio-util"
version = "0.7.16"