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

Remove lazy_static dependency in favor of std OnceLock #133

Merged

Conversation

AlexTMjugador
Copy link
Contributor

The MSRV of this crate is higher than 1.70, which introduced std::sync::OnceLock, a type which can act as a similarly ergonomic replacement for the lazy_static and once_cell crates. Pulling the least dependencies is always welcome by users of a library such as rrule, so let's replace uses of lazy_lock with OnceLock.

@AlexTMjugador
Copy link
Contributor Author

The reported Clippy lint failures should be fixed by #131.

@AlexTMjugador AlexTMjugador force-pushed the refactor/lazy-static-removal branch from c4f6b2f to 812d794 Compare January 27, 2025 12:59
@AlexTMjugador AlexTMjugador force-pushed the refactor/lazy-static-removal branch from 812d794 to 3132c20 Compare January 28, 2025 09:21
@fmeringdal fmeringdal merged commit 81bd6ca into fmeringdal:main Jan 28, 2025
8 checks passed
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.

3 participants