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
Enh Req: Introduce Config metadata for troubleshoot of override/layered values #407
Comments
Hi! Thanks for taking the time to file this issue! What you're describing is definitively a good idea. And it is even a part of my ongoing rewrite of config-rs! |
Thank you for sharing your next-gen activity. As this repo is also quite young and latest version/tag so far is 0.13.3 - I thought it would be appropriate to raise my above request early in the game, so that could be accommodated once 1.0 will be near ;). Finding myself that various other frameworks for Go/Java also often missing this feature, so maybe we need to make then Rust to shine here and thus make it even more attractive for various new development. |
Sure! The more insight I can get into how users expect the library to work and what features are required, the better! Thanks again for sharing your thoughts, very much appreciated!
I don't think I will release 1.0 in the near (or even far) future. I am at least not thinking of my -ng efforts as a path to 1.0, just as a way to streamline the story. But yes you're right, the efforts are definitively to make the story more shiny and deliver something that is a no-brainer to reach for - basically I think config-rs should be "the clap for configuration" 😉 Ninja edit: If you want, you can play with config-rs-ng and see whether the feature is implemented in a way you'd expect (search for |
Hi, in many situations when multiple sources of configurations are used - it's beneficial to have ability of Config metadata to tell which value came from which source and became effective/actual at the end of sources processing.
Implementation of this could add extra feature, for example "config-meta" and once used/enabled - later have method like "get_meta" or "dump_meta".
So if let say I have something like such for config construction out of 2 sources:
and let say one of my YAMLs has such:
and another:
then that new method "dump_meta" could print something like this:
As I'm yet new to Rust - this is just proposal at this point from my side, which I could try to implement one day if no volunteers.
The text was updated successfully, but these errors were encountered: