Skip to content
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

Add a global_module example #571

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

robertek
Copy link

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

@softdevca
Copy link

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

@robertek
Copy link
Author

Thanks for pointing that out.

I have updated that and added a comments around.

@softdevca
Copy link

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

@robertek
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants