pub fn state_dir(root: &Path) -> PathBufExpand description
The per-root state directory, created on demand.
$RGX_CACHE_DIR overrides the base and is used verbatim; otherwise the config file’s cache_dir,
then $XDG_CACHE_HOME/rgx, then ~/.cache/rgx, then a temp dir.