nakamoto icon indicating copy to clipboard operation
nakamoto copied to clipboard

Replace `lazy_static` with `once_cell::Lazy`

Open cloudhead opened this issue 3 years ago • 3 comments

The latter is becoming standardized.

cloudhead avatar Oct 09 '22 08:10 cloudhead

Maybe we could also move the implementation to the experimental one without importing new dependencies?

I used the rustc version and it works pretty well and looks stable enough, but the API looks like different from the once_clell I need to make double-check with the rust lib team on the stabilization road map of this feature

https://github.com/vincenzopalazzo/rio/blob/main/rt/src/runitime.rs#L79

vincenzopalazzo avatar Oct 09 '22 17:10 vincenzopalazzo

How would that work? Doesn't it require nightly?

cloudhead avatar Oct 09 '22 18:10 cloudhead

Yes for now yes https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021

vincenzopalazzo avatar Oct 09 '22 19:10 vincenzopalazzo