Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: simplified dotenv! usage and added dotenv_override! macro #107

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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