Skip to main content

try_populate_cache

Function try_populate_cache 

Source
pub fn try_populate_cache(
    source: &Utf8Path,
    cache_dir: &Utf8Path,
    version: &str,
)
Expand description

Attempts to populate the cache after a download, logging warnings on failure.

This is a convenience wrapper that does not propagate errors, allowing the main flow to continue even if caching fails.

ยงArguments

  • source - Directory containing freshly downloaded binaries
  • cache_dir - Root directory of the binary cache
  • version - Version string for the cache entry