usestd::env;usestd::path::PathBuf;/// Thin wrapper around `nix::unistd::mkdtemp` that prepends $TMPDIR/// when the template is relative.
pubfnmkdtemp(template:&str)->nix::Result<PathBuf>{let template =if template.starts_with('/'){PathBuf::from(template)}else{env::temp_dir().join(template)};nix::unistd::mkdtemp(&template)}