Expand description
Lower-level utilities for mocking the process environment.
Structs§
- Implements Env for the OS context, both Unix style and Windows.
Constants§
Traits§
- Permits parameterizing the home functions via the _from variants - used for in-process unit testing by rustup.
Functions§
- 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.
- 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. - Returns the path of the current user’s home directory from
Env::home_dir
. - 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.
- 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.