sboxd 0.1.7

Policy-driven command runner for sandboxed dependency installation
Documentation
1
2
3
4
5
6
7
8
/// Return the current user's home directory.
///
/// Checks `HOME` first (Unix), then `USERPROFILE` (Windows fallback).
pub fn home_dir() -> Option<std::path::PathBuf> {
    std::env::var_os("HOME")
        .or_else(|| std::env::var_os("USERPROFILE"))
        .map(std::path::PathBuf::from)
}