parse
Parses dotenv content into (key, value) pairs, in file order.
Blank lines, # comments and lines that are not valid KEY=value assignments are skipped.
Supported: an optional export prefix, bare values (a # after whitespace starts a
comment), "double quoted" values with \n \r \t \" \\ escapes and 'single quoted'
literals. Values are single-line. A key assigned twice appears twice.
Import
Section titled “Import”Cargo feature env (enabled by default). To compile only this module:
or in Cargo.toml:
Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
content | &str | The dotenv text to parse. |
Returns
Section titled “Returns”Vec<(String, String)>
