#expand #variables #dotenv #macro #constants

yanked dotenv_consts

A macro that expands dotenv variables to constants

0.1.1 May 8, 2019
0.1.0 May 8, 2019

#47 in #expand

MIT/Apache

3KB

dotenv_consts is a macro that expands the environment variables in your dotfile to constanst.

mod env {
    ::dotenv_consts::dotenv_consts!();
}

fn main() {
    println!("{}", env::SOME_VAR);
}

Dependencies

~3.5–5MB
~91K SLoC