stacks-network/stacks-core

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

Open

#5,035 创建于 2024年8月1日

在 GitHub 查看
 (0 评论) (0 反应) (1 负责人)Rust (758 fork)auto 404
good first issuerefactoring

仓库指标

Star
 (3,063 star)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南