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

server: Replace usage of once_cell with equivalent from std #1820

Merged
merged 1 commit into from
Mar 24, 2025

Conversation

future-highway
Copy link
Contributor

Drop the direct dependency on once_cell as equivalent functionality was released in std for Rust 1.80 (July 25, 2024).

Motivation

Eventually this will hopefully lead to 1 less dependency, however for now once_cell still remains as an indirect dependency since it is used widely in the ecosystem.

Solution

Replace usage of once_cell::sync::Lazy with std::sync::LazyLock.

@future-highway future-highway requested a review from a team as a code owner March 13, 2025 15:01
Copy link
Member

@svix-jplatte svix-jplatte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, why not 👍

@svix-jplatte svix-jplatte merged commit ace5509 into svix:main Mar 24, 2025
13 checks passed
@future-highway future-highway deleted the std-oncecell branch March 24, 2025 17:06
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