config-rs
config-rs copied to clipboard
Add a global_module example
This example shows how to create global configuration module that may be used anywhere in the code with predefined interface.
This should be updated to use OnceLock instead of lazy_static. See pr #515
Thanks for pointing that out.
I have updated that and added a comments around.
I made some small improvements to make clippy happy at https://github.com/fork-in-the-code/fitc-config/commit/374840a4786ed6a66eb52f5d0b321c72cb37aae9
Thanks for the review. I've applied that change.