Skip to main content

data_dir

Function data_dir 

Source
pub fn data_dir() -> PathBuf
Expand description

Returns the data directory following XDG spec.

Uses XDG_DATA_HOME if set, otherwise ~/.local/share/runtimo.

Falls back to /tmp/runtimo with a stderr warning when neither XDG_DATA_HOME nor HOME is set. Data in /tmp is not persistent across reboots — WAL and backup durability guarantees are degraded in this fallback mode.