Function home::env::rustup_home_with_env
source ยท pub fn rustup_home_with_env(env: &dyn Env) -> Result<PathBuf>
Expand description
Variant of cargo_home_with_cwd where the environment source is parameterized. This is specifically to support in-process testing scenarios as environment variables and user home metadata are normally process global state. See the OsEnv trait.