Function dotenv::dotenv [] [src]

pub fn dotenv() -> Result<()DotenvError>

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

Examples

use dotenv;
dotenv::dotenv().ok();