Skip to content

core: Use const initializers instead of once_cell #3314

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

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

Conversation

Expyron
Copy link

@Expyron Expyron commented Jun 14, 2025

Removes the dependency on once_cell by using const initializers for Mutex and Vec.
Also deletes the re-implementation of Lazy for no-std, which is no longer needed.

This is all available in Rust 1.65, so there is no need to raise the MSRV of tracing-core.

@Expyron Expyron requested review from hawkw and a team as code owners June 14, 2025 14:20
Copy link
Member

@jplatte jplatte left a comment

Choose a reason for hiding this comment

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

Code looks good to me. Found another thing about the Cargo manifest, and I think it would be good for this to get a second review.

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