confgr 0.2.1

A simple rust application configuration derive macro.
Documentation
1
2
3
4
5
6
#![allow(dead_code)]

pub fn get_var(key: &str) -> String {
    let msg = format!("{} must be set in .env", key);
    std::env::var(key).expect(&msg)
}