dotenv_module

Macro dotenv_module 

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

Load the dotenv file at build time, and transform all variables into constants within a module.

Can pass filename = "path/to/.env" to specify a custom path to the dotenv file. and visibility = "<visibility modifier (eg. pub(crate))>" to make the module public.