declarative-env 0.1.0 released
(crates.io)
from asperan@programming.dev to rust@programming.dev on 11 Sep 19:02
https://programming.dev/post/37273318
from asperan@programming.dev to rust@programming.dev on 11 Sep 19:02
https://programming.dev/post/37273318
This crate contains a macro for generating a struct which reads the environmental variables defined in the configured file.
This allows to have a single point of definition for the env configuration, thus avoiding a possible incoherence between the documentation and the implementation.
GitHub link: github.com/asperan/declarative-env
Note: I’m the developer of this crate, I’m sharing this hoping that it could help someone
threaded - newest
If the spec contains default values why not make a constructor with all the missing fields or implement
Default
when all fields are covered?Also lol:
For the first implementation I wanted to keep it simple, I don’t exclude that in the future it will change.
Yep, I still need to figure out deep macro testing, for now I use the integration tests and cargo expand. This will absolutely change in the future :)
Thanks for the feedback!