dotenv_plus

Crates.iodotenv_plus
lib.rsdotenv_plus
version0.4.0
sourcesrc
created_at2024-09-27 10:02:41.265277
updated_at2024-10-26 20:00:40.884964
descriptionA dotenv extension for Rust
homepagehttps://github.com/alpheustangs/dotenv_plus.rs
repositoryhttps://github.com/alpheustangs/dotenv_plus.rs
max_upload_size
id1388527
size9,946
Alpheus (alpheustangs)

documentation

README

Dotenv+

A dotenv extension for Rust.

Quick Start

Initialize the environment variables and get different variables with the following code:

use dotenv_plus::{
    env::DotEnv,
    common::get_rust_env,
    var::{set_var, var},
};

DotEnv::new().done();
assert_eq!(get_rust_env(), "development");
set_var("key", "value");
assert_eq!(var("key"), "value");

License

This project is MIT licensed, you can find the license file here.

Commit count: 12

cargo fmt