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

dotenvy_macro could use a option_env!() macro #85

Open
wfraser opened this issue Nov 29, 2023 · 1 comment · May be fixed by #99
Open

dotenvy_macro could use a option_env!() macro #85

wfraser opened this issue Nov 29, 2023 · 1 comment · May be fixed by #99
Labels
enhancement New feature or request

Comments

@wfraser
Copy link

wfraser commented Nov 29, 2023

like the one in std: https://doc.rust-lang.org/std/macro.option_env.html

If the var isn't there, it returns None, instead of raising a compile error. There doesn't seem to be a way to do this with dotenvy currently.

@allan2 allan2 added the enhancement New feature or request label Nov 30, 2023
@allan2
Copy link
Owner

allan2 commented Nov 30, 2023

Good idea! PRs are welcome.

@aidenfarley aidenfarley linked a pull request Apr 18, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants