Crate dotenv [] [src]

This crate provides a configuration loader in the style of the ruby dotenv gem. This library is meant to be used on development or testing environments in which setting environment variables is not practical. It loads environment variables from a .env file, if available, and mashes those with the actual environment variables provided by the operative system.

Enums

DotenvError

Functions

dotenv

This is usually what you want. It loads the .env file located in the same directory as the current executable.

from_filename

Loads the specified file from the same directory as the current executable.

from_path

Loads the file at the specified path.