Skip to main content

parse_env_file

Function parse_env_file 

Source
pub fn parse_env_file(path: &Path) -> Result<BTreeMap<String, String>>
Expand description

Parse a .env file into key-value pairs.

Supports: KEY=VALUE, KEY="VALUE", KEY='VALUE', # comments, blank lines. Returns an empty map if the file does not exist.