Skip to main content

parse_dotenv

Function parse_dotenv 

Source
pub fn parse_dotenv(content: &str) -> Vec<(String, String)>
Expand description

Parse the BAMBU_* assignments from .env-style content. Only BAMBU_- prefixed keys are returned (so an unrelated .env can’t inject surprising config); an optional export prefix and matching surrounding quotes are stripped. Pure (no I/O) so it is unit-testable.