stacks-network/stacks-core

Replace lazy_static! with `std::cell::LazyCell`

Open

#5,035 opened on 2024年8月1日

GitHub で見る
 (0 comments) (0 reactions) (1 assignee)Rust (758 forks)auto 404
good first issuerefactoring

Repository metrics

Stars
 (3,063 stars)
PR merge metrics
 (PR metrics pending)

説明

With std::cell::LazyCell landing in Rust 1.80 (https://doc.rust-lang.org/std/cell/struct.LazyCell.html), I believe all of our uses of lazy_static! can be replaced. This will eliminate a dependency and some uneccessary macro magic.

コントリビューターガイド