Crates.io | dotenv_plus |
lib.rs | dotenv_plus |
version | 0.4.0 |
source | src |
created_at | 2024-09-27 10:02:41.265277 |
updated_at | 2024-10-26 20:00:40.884964 |
description | A dotenv extension for Rust |
homepage | https://github.com/alpheustangs/dotenv_plus.rs |
repository | https://github.com/alpheustangs/dotenv_plus.rs |
max_upload_size | |
id | 1388527 |
size | 9,946 |
A dotenv extension for Rust.
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");
This project is MIT licensed, you can find the license file here.