Ross ROSS = Recommend OSS · open-source software intelligence for agents

rust-lang-nursery/lazy-static.rs

A small macro for defining lazy evaluated static variables in Rust. observed · 2026-08-28

github.com/rust-lang-nursery/lazy-static.rs · Rust · Apache-2.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

25/100

  • Activity 4
  • Release rhythm 8
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 4453
  • days_rel: n/a
  • days_push: 581
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

2034 stars · 125 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A Rust macro crate for declaring lazily evaluated static variables that require runtime initialization, such as heap-allocated collections or non-const computations. It is largely superseded by std::sync::LazyLock in the Rust standard library.

Use cases

  • define lazily initialized static variables in rust
  • create global hashmap or vector singletons in rust
  • initialize statics with non-const function calls
  • avoid unsafe static initialization in rust
  • share lazily computed configuration across a rust program

When to choose

  • you need lazy statics on rustc versions older than 1.80 without LazyLock
  • you prefer a macro-based API for declaring statics
  • you maintain legacy code already using lazy_static

When to avoid

  • you target modern Rust where std::sync::LazyLock covers the same need without a dependency
  • you need async lazy initialization
  • you want actively developed features beyond lazy statics

Facets

library · maturity maintenance

concurrency developer-tools programming-languages developer-tools rust cross-platform lazy-evaluation static-variables macro rust-crate singletons

1 source

Member repositories

RepositoryRoleHealth v2
rust-lang-nursery/lazy-static.rsmain25

For agents

markdown · JSON · MCP: product_card(name="rust-lang-nursery/lazy-static.rs")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem