Expand description

A well-maintained fork of the dotenv crate

This library loads environment variables from a .env file. This is convenient for dev environments.

Enums

Functions

Loads the .env file from the current directory or parents. This is typically what you want.
Returns an iterator over environment variables.
Loads environment variables from the specified file.
Returns an iterator over environment variables from the specified file.
Loads environment variables from the specified path.
Returns an iterator over environment variables from the specified path.
Loads environment variables from io::Read.
Returns an iterator over environment variables from io::Read.
Gets the value for an environment variable.
Returns an iterator of (key, value) pairs for all environment variables of the current process. The returned iterator contains a snapshot of the process’s environment variables at the time of invocation. Modifications to environment variables afterwards will not be reflected.

Type Definitions