Skip to main content

load_dotenv

Function load_dotenv 

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

Load .env from the current working directory only — no parent traversal — to populate std::env before config resolution. A missing file is the common dev case and is not an error.

IMPLEMENTATION.md §10: via dotenvy, CWD only, no parent traversal.