-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 lazy_static with once_cell #3828
Comments
FWIW, the subset of the API which can be reasonably implented in no-std is available: https://docs.rs/once_cell/latest/once_cell/race/index.html The "I can't notify OS that I am blocked, so I am just going to spin" part is indeed not available, but I'd argue that is a feature :-) |
Though this is changing an API item we export, we do not consider this a breaking change because - This was an implementation detail of the macros and people shouldn't be using it directly - The `macro_rules` macro is coupled to `clap` because they are in the same crate - The derive macro is coupled to `clap` because `clap` declares a `=x.y.z` dependency on `clap_derive Fixes clap-rs#3828
Huh, I thought there was a reason why I had kept it but not seeing a reason to. #3829 will switch us over. |
Hmm, I think that's what tracing wants.. (tokio-rs/tracing#1165 (comment)) 😕 I guess that also means matklad/once_cell#61 should be closed? In any case that issue is probably the place to continue this conversation. |
The Rust ecosystem is generally migrating away from lazy_static to once_cell, for example [here]. This patch updates openvino-sys from lazy_static to once_cell. [here]: clap-rs/clap#3828
The Rust ecosystem is generally migrating away from lazy_static to once_cell, for example [here]. This patch updates openvino-sys from lazy_static to once_cell. [here]: clap-rs/clap#3828
Many other projects have switched from
lazy_static
toonce_cell
because it offers a macro-free solution to the same problem (with the only caveat being missingno_std
support which I'm pretty sure is irrelevant for clap). Would you be open to a PR that does the same thing here?In the future, the
once_cell
dependency can likely be removed in favor of the same functionality instd
.The text was updated successfully, but these errors were encountered: