[−][src]Function dotenv::dotenv
pub fn dotenv() -> Result<PathBuf>
This is usually what you want. It loads the .env file located in the environment's current directory or its parents in sequence.
Examples
use dotenv; dotenv::dotenv().ok();
pub fn dotenv() -> Result<PathBuf>
This is usually what you want. It loads the .env file located in the environment's current directory or its parents in sequence.
use dotenv; dotenv::dotenv().ok();