Skip to main content

Module env

Module env 

Source
Expand description

Functions for working with the host environment.

Structs§

ExecutableNotFoundError

Functions§

binary_exists
Checks if a binary with the given name exists.
current_working_dir
Get the current working directory. This information is managed internally as the call to std::env::current_dir might fail if the cwd has been deleted.
env_var_is_set
Checks if the given environment variable is set.
expand
performs substitution of enviorment variables. Supports the following (POSIX) syntax:
set_current_working_dir
Update the current working directory.
which
Attempts to find a binary of the given name. See which.