bottlerocket icon indicating copy to clipboard operation
bottlerocket copied to clipboard

Replace use of `lazy_static!` with `once_cell`

Open etungsten opened this issue 3 years ago • 0 comments

What I'd like: Replace use of lazy_static! with once_cell in all our workspaces. once_cell lets us avoid the use of macros, compiles faster, and allows for more ways to lazily initialize. It is also being considered for inclusion in std: https://github.com/rust-lang/rust/issues/74465. We're already pulling in once_cell as a transitive dependency.

etungsten avatar Jul 27 '22 16:07 etungsten