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

Replace once_cell with std::sync::{OnceLock,LazyLock} #827

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

negezor
Copy link

@negezor negezor commented Oct 6, 2024

What was changed

Replaced once_cell with std::sync

Why?

Since you can already directly use OnceLock and LazyLock from std without an additional crate. However, this would require raising MSVR to 1.80 because of LazyLock, but OnceLock can be used from 1.70 onwards.

Considering that the current approximate MSVR is 1.77 (based on GitHub Workflow) I think it won't be a big deal to raise it to 1.80.

Checklist

  1. How was this tested:
    Run cargo test

@negezor negezor requested a review from a team as a code owner October 6, 2024 18:26
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.

1 participant