home::env

Function cargo_home_with_env

Source
pub fn cargo_home_with_env(env: &dyn Env) -> Result<PathBuf>
Expand description

Variant of cargo_home 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 Env trait.