Skip to main content

Crate utils

Crate utils 

Source
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
offload
Run a future on tokio’s worker pool instead of the calling thread.
sleep
Cross-platform async sleep backed by tokio.

Type Aliases§

CoverUrl