-
Notifications
You must be signed in to change notification settings - Fork 721
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
Switch from lazy_static to once_cell #1165
Comments
EDIT: #1165 (comment) |
I'm fine with this. I've been conservative about switching away from
I don't think this is correct, though. The vendored code is the |
Yeah, it doesn't (yet): matklad/once_cell#61 |
Oh, you are right. I missed no-std support is only |
Done in #2147. |
It would be nice if tracing could switch from lazy_static to once_cell like tokio did. I don't think there are any downsides, and it reduces the number of dependencies for crates that depend on both tracing and tokio (for example through hyper).
Crates
Motivation
Fewer dependencies, less work to later switch to
std
'sLazy
type if / when it is stabilized.Proposal
Replace usage of
lazy_static!
withonce_cell::sync::Lazy
.Alternatives
Do nothing. That would mean lots of applications have two crates that do the same thing in their dependency tree (though they're not big, so it's not that bad).
The text was updated successfully, but these errors were encountered: