Skip to content

Conversation

@sabify
Copy link

@sabify sabify commented Jul 7, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant