Skip to main content

parse_env

Function parse_env 

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

Parses .env-style content into a key -> value map.

Rules: blank lines and lines starting with # are skipped; an optional export prefix is ignored; values have surrounding quotes stripped and a trailing # comment removed.