dotenv_plus/lib.rs
1//! # Dotenv+
2//!
3//! A dotenv solution for Rust.
4//!
5//! ## Quick Start
6//!
7//! Write the environment variables in the env files
8//! and access them later using the `var` function:
9//!
10//! ```txt
11//! KEY=value
12//! ```
13//!
14//! ```no_run
15//! use dotenv_plus::{
16//! DotEnv,
17//! var,
18//! };
19//!
20//! DotEnv::new().run();
21//!
22//! assert_eq!(var("RUST_ENV"), "production");
23//!
24//! assert_eq!(var("KEY"), "value");
25//! ```
26//!
27//! ```sh
28//! # By default, `RUST_ENV` is set to `development`
29//! RUST_ENV=production cargo run
30//! ```
31
32pub(crate) mod internal;
33
34pub use internal::env::*;
35pub use internal::var::*;