Crate dotenvy

source ·
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.

Structs

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 all variables found in the reader into the environment, overriding any existing environment variables of the same name.
  • Loads environment variables from the specified file.
  • Returns an iterator over environment variables from the specified file.
  • Loads environment variables from the specified file, overriding existing environment variables.
  • Loads environment variables from the specified path.
  • Returns an iterator over environment variables from the specified path.
  • Loads environment variables from the specified path, overriding existing environment variables.
  • Loads environment variables from io::Read.
  • Returns an iterator over environment variables from io::Read.
  • Loads environment variables from io::Read, overriding existing environment variables.
  • 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