Skip to main content

parse_dotenv

Function parse_dotenv 

Source
pub fn parse_dotenv(input: &str, opts: Options) -> Result<Config, AdapterError>
Expand description

Read .env file content.

The dialect is deliberately small (spec F1.7): NAME=value, an optional export prefix, whole-line # comments, single quotes taken literally, double quotes with \n \r \t \\ \". Multi-line values and trailing comments are unsupported — an unquoted value containing # is an error rather than a guess. No ${...} expansion.