Files
qbz/crates/qbz-integrations/Cargo.toml
T
vicrodh ef38e7a04e feat(slint): port Discord Rich Presence (opt-in) from Tauri
Frontend-agnostic core in qbz-integrations::discord (DiscordRpc +
NowListening) — the Tauri backend minus the tauri::command/State
wrappers: lazy IPC connect, Listening activity (details/state/assets +
"Get QBZ" button + timestamps), and the opt-in Flatpak socket bridge.
qbz-slint discord_rpc controller: process-global client, init AFTER the
session is active (PR #477 persistence fix — both online and offline
entry, never at early boot), push on the track-change and play/pause
edges, clear on logout. Opt-in toggle in Settings > Integrations
(DiscordState, persisted in ui_prefs.discord_rpc_enabled) + a Flatpak
socket-access note. The opt-in is per-machine (ui_prefs) rather than
Tauri's per-user.

cc
2026-06-22 22:56:05 -06:00

41 lines
1018 B
TOML

[package]
name = "qbz-integrations"
version = "0.1.0"
edition = "2021"
description = "Third-party service integrations for QBZ (Last.fm, ListenBrainz, MusicBrainz)"
license = "MIT"
[dependencies]
# Async runtime
tokio = { version = "1", features = ["sync", "time"] }
# HTTP client
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# Logging
log = "0.4"
# Error handling
thiserror = "1"
# URL encoding for API queries
urlencoding = "2"
# Discord Rich Presence (now-listening activity). Same crate + version the
# Tauri build used; frontend-agnostic (IPC-only, no Tauri dependency).
discord-rich-presence = "1.1.0"
# SQLite for caching (optional, enabled by default)
rusqlite = { version = "0.31", features = ["bundled"], optional = true }
# Time handling for cache TTL
chrono = { version = "0.4", optional = true }
[features]
default = ["cache"]
cache = ["dep:rusqlite", "dep:chrono"]