Function home::env::cargo_home_with_cwd_env

source ยท
pub fn cargo_home_with_cwd_env(env: &dyn Env, cwd: &Path) -> 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.