#dotenv #environment-variables #dotfile #macro

yanked dotenv_consts

A macro that expands dotenv variables to constants

0.1.1 May 8, 2019
0.1.0 May 8, 2019

MIT/Apache

2KB

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

~1.6–2.4MB
~62K SLoC

D\