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

Clarification on Docs regarding no_std #229

Closed
mert-kurttutan opened this issue May 23, 2023 · 0 comments
Closed

Clarification on Docs regarding no_std #229

mert-kurttutan opened this issue May 23, 2023 · 0 comments

Comments

@mert-kurttutan
Copy link

mert-kurttutan commented May 23, 2023

From FAQ section on docs:

[F.A.Q.](https://docs.rs/once_cell/latest/once_cell/index.html#faq)
Should I use lazy_static or once_cell?

To the first approximation, once_cell is both more flexible and more convenient than lazy_static and should be preferred.

Unlike once_cell, lazy_static supports spinlock-based implementation of blocking which works with #![no_std].

lazy_static has received significantly more real world testing, but once_cell is also a widely used crate.

Maybe, you could also mention critical section based implementation for no_std ??

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

No branches or pull requests

1 participant