Function dotenv::load

source · []
pub fn load() -> Result<PathBuf>
Expand description

Load .env file and then set environment variables.

It will search for .env file in the current directory or its parents in sequence.

Examples

dotenv::load().ok();