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
66 downloads per month
Used in 2 crates
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!(), } } ´´´