Skip to main content

runtime_dir

Function runtime_dir 

Source
pub fn runtime_dir() -> PathBuf
Expand description

Runtime dir for sockets: $XDG_RUNTIME_DIR on Linux (RAM, 0700, cleared on reboot), $TMPDIR on macOS (per-user, private). Never the VM dir itself: ~/.cache lives on persistent (sometimes network) storage, and sun_path caps socket paths at 104 bytes on macOS — deep checkouts breach it. Per-VM subdirs preserve isolation.