Crates.io | rdotenv |
lib.rs | rdotenv |
version | 0.1.4 |
source | src |
created_at | 2023-10-01 12:54:39.087388 |
updated_at | 2023-10-01 13:11:48.854479 |
description | A simple rust library for parsing .env files |
homepage | |
repository | https://github.com/0xleft/rdotenv |
max_upload_size | |
id | 989227 |
size | 5,167 |
A very simple .env file parser my rust projects.
main.rs
use rdotenv::DotEnv;
fn main() {
let mut env = DotEnv::new();
env.load();
println!("{}", env.get("TEST_KEY"));
}
.env
TEST_KEY=TEST_VALUE
output
TEST_VALUE
MIT License
Feel free.