config-rs icon indicating copy to clipboard operation
config-rs copied to clipboard

Add a global_module example

Open robertek opened this issue 1 year ago • 4 comments

This example shows how to create global configuration module that may be used anywhere in the code with predefined interface.

robertek avatar Jul 11 '24 21:07 robertek

This should be updated to use OnceLock instead of lazy_static. See pr #515

softdevca avatar Jul 17 '24 15:07 softdevca

Thanks for pointing that out.

I have updated that and added a comments around.

robertek avatar Jul 18 '24 09:07 robertek

I made some small improvements to make clippy happy at https://github.com/fork-in-the-code/fitc-config/commit/374840a4786ed6a66eb52f5d0b321c72cb37aae9

softdevca avatar Jul 20 '24 04:07 softdevca

Thanks for the review. I've applied that change.

robertek avatar Jul 22 '24 12:07 robertek