The dotenvy_macro::dotenv! macro only needs to populate the variables once and then the variables are accessible via Rust's env! macro. This is much more natural, clean and ergonomic. With the current implementation, the macro reads the .env file and populates the variables on each call and then tries to come to a resolution.
This PR also adds the dotenv_override! macro in line with the main library.
The
dotenvy_macro::dotenv!
macro only needs to populate the variables once and then the variables are accessible via Rust'senv!
macro. This is much more natural, clean and ergonomic. With the current implementation, the macro reads the.env
file and populates the variables on each call and then tries to come to a resolution.This PR also adds the
dotenv_override!
macro in line with the main library.