dotenvy

Macro dotenvy 

Source
dotenvy!() { /* proc-macro */ }
Expand description

This macro reads environment variables at compile-time from the .env file or optionally from the environment, then emits a literal containing the value. You can specify a type and a default value, if the variable is optional.

dotenvy!(SOME_VARIABLE: usize = 5)