Skip to main content

load_env_file

Function load_env_file 

Source
pub fn load_env_file(config_path: &Path)
Expand description

Loads a .env file living next to the given config file into the process environment, so that both robin’s own ${VAR:-default} substitution and the shell see the variables. Existing environment variables always win (standard dotenv precedence), and a missing file is not an error.

Set ROBIN_NO_DOTENV to skip loading entirely.