Skip to main content

parse_dotenv

Function parse_dotenv 

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

Parse dotenv file contents into key-value pairs.

Supports: KEY=VALUE, KEY="quoted value", KEY='single quoted', export KEY=VALUE, # comments, blank lines.