Skip to main content

cache_dir

Function cache_dir 

Source
pub fn cache_dir() -> PathBuf
Expand description

Returns the directory the shared cache lives in. Honors $HARN_CACHE_DIR, then $XDG_CACHE_HOME/harn/bytecode, then $HOME/.cache/harn/bytecode. The directory is not created here — store creates it lazily on write so read-only environments don’t pay an mkdir cost.