get_cache_dir

Function get_cache_dir 

Source
pub fn get_cache_dir() -> Result<PathBuf>
Expand description

Searches for the asm-lsp cache directory.

  • First checks for the ASM_LSP_CACHE_DIR environment variable. If this variable is present and points to a valid directory, this path is returned.
  • Otherwise, the function returns ~/.config/asm-lsp/

ยงErrors

Returns Err if no directory can be found through ASM_LSP_CACHE_DIR, and then no home directory can be found on the system