dotenvor 0.2.0

Small, fast `.env` parser and loader for Rust
Documentation
//! Parse and load `.env` files.
//!
//! [`EnvLoader::load`] is the safe default and returns a process-isolated
//! in-memory map.
//!
//! Convenience loaders (`dotenv`, `from_path`, `from_paths`, `from_filename`)
//! mutate the process environment and are `unsafe`, because callers must
//! guarantee no concurrent process-environment access.
//!
//! The [`load`] attribute macro offers startup-loading ergonomics for
//! `Result`-returning functions. `fn main` stays safe; other annotated
//! functions become `unsafe fn` so process-env mutation keeps its safety
//! contract.

mod env;
mod error;
mod loader;
mod model;
mod parser;

pub use dotenvor_macros::load;
pub use env::TargetEnv;
pub use error::{Error, ParseError, ParseErrorKind};
pub use loader::{EnvLoader, dotenv, from_filename, from_path, from_paths};
pub use model::{Encoding, Entry, KeyParsingMode, LoadReport, LoadedEnv, SubstitutionMode};
pub use parser::{
    parse_bytes, parse_bytes_with_mode, parse_reader, parse_reader_with_mode, parse_str,
    parse_str_with_mode,
};