| Crates.io | minenv |
| lib.rs | minenv |
| version | 1.1.1 |
| created_at | 2025-12-08 03:39:47.446659+00 |
| updated_at | 2025-12-09 04:00:09.629631+00 |
| description | use env files to store config, env vars override them, in 50 lines of code instead of 1,500 |
| homepage | https://github.com/duckinator/minenv |
| repository | |
| max_upload_size | |
| id | 1972697 |
| size | 4,783 |
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 ???
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")?);
}