1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! # dotenvpp-parser
//!
//! Core `.env` file parser for DotenvPP.
//!
//! This crate is `no_std`-compatible (with `alloc`) so it can be used
//! in WASM and embedded environments. Enable the `std` feature (on by
//! default) for `std::error::Error` implementations.
//!
//! ## Features
//!
//! - `KEY=VALUE` basic parsing with comment and blank-line handling
//! - Single-quoted values (literal, multiline supported), double-quoted values
//! (with escapes), and unquoted values
//! - Multiline values in single-quoted and double-quoted strings
//! - `export KEY=VALUE` prefix support
//! - Escape sequences: `\\`, `\"`, `\n`, `\t`, `\r`, `\$`
//! - Common unquoted escapes for spaces, quotes, dollar signs, and newlines
//!
//! ## Example
//!
//! ```
//! use dotenvpp_parser::parse;
//!
//! let input = "# Database config\nDB_HOST=localhost\nDB_PORT=5432\nSECRET='keep-it-safe'\n";
//!
//! let pairs = parse(input).unwrap();
//! assert_eq!(pairs.len(), 3);
//! assert_eq!(pairs[0].key, "DB_HOST");
//! assert_eq!(pairs[0].value, "localhost");
//! ```
extern crate alloc;
pub use ParseError;
pub use ;