stacks-network/stacks-core

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

Open

#5.035 geöffnet am 1. Aug. 2024

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Rust (758 Forks)auto 404
good first issuerefactoring

Repository-Metriken

Stars
 (3.063 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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.

Contributor Guide