pub fn default_root() -> Result<PathBuf>Expand description
The per-user state directory this build keeps sessions under.
$XDG_STATE_HOME on Linux, which is defined for state that must survive a
restart without being configuration or data, and never XDG_RUNTIME_DIR,
which is cleared at logout. ~/Library/Application Support on macOS rather
than Caches, which the system may purge at will. %LOCALAPPDATA% on
Windows and deliberately not the roaming profile, since an extracted content
file cannot follow a user between machines.
ยงErrors
Where the platform names no home for this, which is a machine too unusual to guess about rather than a condition to work around.