try_use_cache

Function try_use_cache 

Source
pub fn try_use_cache(
    cache_dir: &Utf8Path,
    version: &str,
    target: &Utf8Path,
) -> bool
Expand description

Attempts to use the cache, falling back gracefully on errors.

This is a convenience wrapper that logs warnings instead of failing when cache operations encounter errors.

§Arguments

  • cache_dir - Root directory of the binary cache
  • version - Version string to look up
  • target - Target installation directory for copy

§Returns

Returns true if binaries were successfully copied from cache, false if the cache was missed or an error occurred.