Skip to main content

hematite_dir

Function hematite_dir 

Source
pub fn hematite_dir() -> PathBuf
Expand description

Returns the directory where Hematite’s runtime state (.hematite/) should live.

  • In sovereign OS directories (Desktop, Downloads, Documents, Pictures, Videos, Music): returns ~/.hematite/ so no workspace folder is created there.
  • Everywhere else: returns workspace_root()/.hematite/ as normal.