Expand description
Compact on-disk snapshot of library metadata (platforms + merged collections).
Used by the TUI to paint the library screen immediately on entry while a
background refresh reconciles with the API. Full ROM lists remain on-demand
and continue to use crate::core::cache::RomCache.
Structs§
- Collection
Digest Entry - Compact digest used to quickly detect collection-summary changes.
- Library
Metadata Fetch - Result of a live metadata fetch (background or cold path).
Functions§
- build_
collection_ digest_ from_ collections - Build a lightweight digest keyed by collection identity (manual/smart/virtual).
- fetch_
collection_ summaries - Stage-A refresh: collections summary only (manual/smart/virtual merge).
- fetch_
merged_ library_ metadata - Fetch platforms and merged collections from the API (same behavior as the former synchronous TUI main-menu path, including virtual collection timeout).
- load_
snapshot - Load a snapshot from disk if present and valid.
- save_
snapshot - Persist merged metadata for next startup.
- snapshot_
effective_ path - Effective path to the snapshot file.