Skip to main content

home_dir

Function home_dir 

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

Returns the absolute home directory by reading $HOME.

We deliberately avoid dirs / home crates: spool already keeps dependencies tight (see Cargo.toml), and the only platforms we support set $HOME reliably (macOS, Linux). On Windows we’d need USERPROFILE — out of scope for the R1 MVP.