You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dotenvy's last release was made almost 3 years ago, and the last commit is over 1 year ago.
As I'm not sure if it'll be revived in the future, I've created a small dotenv crate for examples.
unsafe required because of edition 2024.
@robjtede I've been thinking this for a while but it's a bit difficult to make a choise and I'd like to hear your thoughts.
If we prefer in-memory loading way, it doesn't work well with other libs like DB drivers which need env-loading strictly.
If we prefer proc-macros (or a way like dotenvy), it just hides unsafety, but user still needs to ensure on env processing.
I think it's the best way just to use unsafe methods here, it aligns why Rust makes it unsafe.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
dotenvy's last release was made almost 3 years ago, and the last commit is over 1 year ago.
As I'm not sure if it'll be revived in the future, I've created a small dotenv crate for examples.
unsafe required because of edition 2024.