minenv

Crates.iominenv
lib.rsminenv
version1.1.1
created_at2025-12-08 03:39:47.446659+00
updated_at2025-12-09 04:00:09.629631+00
descriptionuse env files to store config, env vars override them, in 50 lines of code instead of 1,500
homepagehttps://github.com/duckinator/minenv
repository
max_upload_size
id1972697
size4,783
Ellen Marie Dash (duckinator)

documentation

README

min env

use an env file to store key/value pairs for configuration.

environment variables override them.

it's ~50 lines, instead of ~1,500 like some alternatives.

??? why is this a thing i needed to make ???

usage

use minenv;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let env = minenv::load("test.env")?;
    println!("foo={}", env.var("foo").ok_or("$foo is not defined")?);
}
Commit count: 0

cargo fmt