Skip to main content

load_registry_index

Function load_registry_index 

Source
pub fn load_registry_index(
    data_dir: &Path,
    registry_url: Option<&str>,
) -> Result<RegistryIndex>
Expand description

Load or refresh the registry index.

Tries the cache first. If expired or missing, reads from a local file path (for development) or returns an error suggesting manual refresh.