Module index

Module index 

Source
Expand description

Official package index management, persistence, and enrichment.

Split into submodules for maintainability. Public API is re-exported to remain compatible with previous crate::index consumers.

Structs§

OfficialIndex
What: Represent the full collection of official packages maintained in memory.
OfficialPkg
What: Capture the minimal metadata about an official package entry.

Functions§

all_official
What: Return the entire official index as a list of PackageItems.
all_official_or_fetch
What: Return the entire official list; if empty, try to populate from disk and return it.
explicit_names
What: Return a cloned set of explicitly installed package names.
find_package_by_name
What: Find a package by name in the official index and return it as a PackageItem.
is_artix_galaxy
What: Check if a repo name is the Artix galaxy repository.
is_artix_lib32
What: Check if a repo name is the Artix lib32 repository.
is_artix_omniverse
What: Check if a repo name is the Artix omniverse repository.
is_artix_repo
What: Check if a repo name belongs to Artix Linux
is_artix_system
What: Check if a repo name is the Artix system repository.
is_artix_universe
What: Check if a repo name is the Artix universe repository.
is_artix_world
What: Check if a repo name is the Artix world repository.
is_cachyos_repo
What: Check if a repo name belongs to CachyOS
is_eos_name
What: Heuristic to treat a name as EndeavourOS-branded
is_eos_repo
What: Check if a repo name is an EndeavourOS repo
is_installed
What: Query whether name appears in the cached set of installed packages.
is_manjaro_name_or_owner
What: Determine if a package or its owner indicates Manjaro
is_name_manjaro
What: Determine if a package name is Manjaro-branded
load_from_disk
What: Load the official index from path if a valid JSON exists.
query_explicit_packages_sync
What: Query pacman directly for explicitly installed packages with the specified mode.
refresh_explicit_cache
What: Refresh the process-wide cache of explicitly installed package names.
refresh_installed_cache
What: Refresh the process-wide cache of installed package names using pacman -Qq.
request_enrich_for
What: Request enrichment (pacman -Si) for a set of package names in the background, merge fields into the index, persist, and notify.
save_to_disk
What: Persist the current official index to path as JSON.
search_official
What: Search the official index for packages whose names match query.
update_in_background
What: Spawn a background task to refresh the official index and notify on changes.