dotenv_plus

Crates.iodotenv_plus
lib.rsdotenv_plus
version0.5.1
created_at2024-09-27 10:02:41.265277+00
updated_at2025-05-28 11:05:35.840177+00
descriptionA dotenv solution for Rust
homepagehttps://github.com/alpheusday/dotenv_plus.rs
repositoryhttps://github.com/alpheusday/dotenv_plus.rs
max_upload_size
id1388527
size8,960
Alpheus (alpheusmtx)

documentation

README

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.

Commit count: 21

cargo fmt