Expand description
Shared utility crate for Kopuz: color helpers, image processing (artwork, thumbnails, subsonic images), lyrics fetching, and terminal logging.
Modules§
- color
- db_
cache - Process-wide handle to the app database for read-through caches living in this crate (lyrics, metadata enrichment). Registered once at startup; every cache degrades gracefully to fetch-only when unset (tests, early boot).
- hls_
source - Minimal HLS assembler for SoundCloud Go+ AAC streams.
- jellyfin_
image - logs
- On-disk log file management: per-session rotation, retention, crash reports, and the user-facing “export logs” bundle.
- lyrics
- musicbrainz
- range_
source - HTTP Range-backed seekable byte source.
- stream_
buffer - subsonic_
image - themes
Functions§
- cover_
url_ from_ string - default_
cover_ url - format_
artwork_ thumb_ url - format_
artwork_ url - map_
cover_ url - sleep
- Cross-platform async sleep that works on both native (tokio) and WASM (gloo-timers).