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

Compile-time macro should be configurable with path #128

Open
allan2 opened this issue Sep 9, 2024 · 2 comments
Open

Compile-time macro should be configurable with path #128

allan2 opened this issue Sep 9, 2024 · 2 comments

Comments

@allan2
Copy link
Owner

allan2 commented Sep 9, 2024

With the deprecation of from_filename and finding in this crate, this functionality is needed for the dotenv! macro to be updated.

It should follow the design of the runtime attribute macro, #[load(path = "./.env", required = true, override_ = false).

@aidenfarley
Copy link

Is something along the lines of:

dotenvy_macro::load!("./.env", true, false)

What you're looking for?
If not, could you please provide an example.

@allan2
Copy link
Owner Author

allan2 commented Sep 12, 2024

It should follow the attribute macro.

Like:

load!(path = "./.env", required = true, override_ = false)

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

No branches or pull requests

2 participants