Module indigo::env[][src]

Functions for inspecting the environment of the current process.

Enums

VarError

One of the possible errors that can occur when reading an environment variable.

WorkingPathError

One of the possible errors returned by working_path().

Functions

exe_name

Returns the file name of the currently running executable.

exe_path

Returns the full file system path to directory containing the currently running executable.

is_cargo_run

Returns true if this executable was started by cargo run or similar.

load_dotenv

Loads environment variables from a .env file in the current working directory or one of its parent directories.

load_dotenv_from

Loads environment variables from a file in the current working directory or one of its parent directories.

project_path

Returns the full file system path to the cargo project of the currently running executable.

var

Returns the value of the given environment variable.

working_path

Returns the full file system path to the current working directory.

workspace_path

Returns the full file system path to the cargo workspace of the currently running executable.