Skip to main content

cache_dir

Function cache_dir 

Source
pub fn cache_dir() -> Option<PathBuf>
Expand description

Locate the directory we cache the downloaded multiarch-hints file in.

Honours $XDG_CACHE_HOME and falls back to $HOME/.cache. Returns None when neither is set — callers should treat that as “skip the cache” rather than as an error. The returned path is not created; see cache_file_path for the canonical filename.