- ym-api wraps yamuse: device-code flow, token refresh, account status, and its own Error type that the UI acts on (expired, denied, network) - Credentials live in the system keychain, never print their tokens, and refresh when within a week of expiry; a rejected token is forgotten - Sign-in screen with code, QR, copy/open-in-browser, countdown and a pasted-token fallback; restoring/unreachable screens on startup - Sidebar account chip and Settings account card with Plus status and sign-out; Settings re-reads the account when opened - Live device-code test behind --ignored
20 lines
414 B
TOML
20 lines
414 B
TOML
[package]
|
|
name = "ym-api"
|
|
description = "Client for the unofficial Yandex Music API"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
publish.workspace = true
|
|
|
|
[dependencies]
|
|
yamuse = "0.3.2"
|
|
serde = { version = "1", features = ["derive"] }
|
|
thiserror = "2"
|
|
|
|
[dev-dependencies]
|
|
serde_json = "1"
|
|
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
|
|
|
|
[lints]
|
|
workspace = true
|