Module af_core::env[][src]

Provides access to environment variables and well-known paths.

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.

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.