3 releases (1 stable)

1.0.0 Jan 19, 2024
0.1.1 Oct 7, 2023
0.1.0 Oct 7, 2023

#44 in #env-file

Download history 5/week @ 2024-06-03 16/week @ 2024-06-17 1/week @ 2024-07-01 17/week @ 2024-07-29

66 downloads per month
Used in 2 crates

MIT/Apache

4KB
60 lines

Menva

Set your environment variables from your .env file ´´´rust use menva::read_env_file;

fn main() { read_env_file(".env"); do_cool_things(); } ´´´

Get your environment variables with their type ´´´rust use menva::{get_env, get_bool_env};

pub fn do_cool_things() { match get_bool_env("SHOULD_I") { true => println!("{}", get_env("SECRET_TEXT")), false => todo!(), } } ´´´

No runtime deps