Expand description
Lower-level utilities for mocking the process environment.
Structs§
- OsEnv
- Implements Env for the OS context, both Unix style and Windows.
Constants§
Traits§
- Env
- Permits parameterizing the home functions via the _from variants - used for in-process unit testing by rustup.
Functions§
- cargo_
home_ with_ cwd_ env - Variant of
cargo_home_with_cwd
where the environment source is parameterized. - cargo_
home_ with_ env - Variant of
cargo_home
where the environment source is parameterized. - home_
dir_ with_ env - Returns the path of the current user’s home directory from
Env::home_dir
. - rustup_
home_ with_ cwd_ env - Variant of
cargo_home_with_cwd
where the environment source is parameterized. - rustup_
home_ with_ env - Variant of
cargo_home_with_cwd
where the environment source is parameterized.