Skip to main content

load_dotenv

Function load_dotenv 

Source
pub fn load_dotenv() -> Result<Option<PathBuf>>
Expand description

Loads variables from a .env file in the current directory or its parents.

Variables already set in the process environment take precedence. A missing file is not an error; Ok(None) is returned instead.