pub fn devshell_export_parent_dir() -> PathBufExpand description
Parent directory for per-run devshell_* export folders.
Many Linux systems mount std::env::temp_dir (often /tmp) with noexec, so cargo run
can build but fails to execute target/debug/... with Permission denied (EACCES). This
defaults to a user cache path that is normally executable.
Resolution order:
DEVSHELL_EXPORT_BASEif set and non-empty.- Unix:
XDG_CACHE_HOME/cargo-devshell-exports, elseHOME/.cache/cargo-devshell-exports. - Windows:
LOCALAPPDATA/cargo-devshell-exports. - Fall back to
std::env::temp_dir.