Function dotenvy::dotenv_override

source ·
pub fn dotenv_override() -> Result<PathBuf>
Expand description

Loads all variables found in the reader into the environment, overriding any existing environment variables of the same name.

Where multiple declarations for the same environment variable exist in your .env file, the last one is applied.

If you want the existing environment to take precedence, or if you want to be able to override environment variables on the command line, then use dotenv instead.

Examples

dotenvy::dotenv_override()?;