bottlerocket-os / bottlerocket-os/bottlerocket-core-kit

Replace use of `lazy_static!` with `once_cell`

Open
#427 4 comments 4 reactions 1 assignee Assigned to @MacOS View on GitHub
good first issue
Dominant language
Rust
Stars
34
Forks
77
Avg merge
2d 23h
Merged PRs (30d)
23

Description

**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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.