Skip to main content

parse_env

Function parse_env 

Source
pub fn parse_env(contents: &str) -> Vec<(String, Zeroizing<String>)>
Expand description

Parse a .env file into key-value pairs. Skips comments, blank lines, MURK_* keys, and strips quotes and export prefixes.

Values are wrapped in Zeroizing so that the plaintext is wiped from memory as soon as the caller drops them.