dotenv_plus 0.5.0

A dotenv solution for Rust
Documentation

Dotenv+

A dotenv solution for Rust.

Quick Start

Write the environment variables in the env files and access them later using the var function:

KEY=value
use dotenv_plus::{
    DotEnv,
    var,
};

DotEnv::new().run();

assert_eq!(var("RUST_ENV"), "production");

assert_eq!(var("KEY"), "value");
# By default, `RUST_ENV` is set to `development`
RUST_ENV=production cargo run

License

This project is licensed under the terms of the MIT license.