Crate

lazy_static

Macro for declaring lazily-initialized static variables in Rust.

What it is

lazy_static! declares static variables initialized on first access rather than at program start. Under the hood it uses a Once primitive. It has been superseded by once_cell::sync::Lazy and the standard library's std::sync::LazyLock, but remains widely used in existing code.

Why it is commonly used

Used for global singletons — compiled regex, connection pools, configuration — that need to be initialized once and safely shared across threads. New code prefers once_cell or std::LazyLock, but lazy_static remains common in existing Rust projects.

670
Repositories
84%
Actively maintained
560
Updated ≤ 30 days
2.1M
Total stars
597
Owners

Counted from the Cargo.toml manifests of the 670 indexed repositories that declare lazy_static as a dependency — not download counts. Dependency data last verified 2026-08-13.

Browse 670 repositories using lazy_static in Repos →
Often used with

Crates that show up unusually often in lazy_static projects. The most distinctive pairings rank first — crates these projects use far more than the average indexed Rust project does, not just crates that are popular everywhere. Each percentage is the share of lazy_static projects that also use it.

Used by these organizations
50 of 670 repositories · ranked by stars · 560 pushed in the last 30 days
rtk76kactive

CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies

⑂ 4.8k2.0k
union74kactive

The trust-minimized, zero-knowledge bridging protocol, designed for censorship resistance, extremely high security, and usage in decentralized finance.

hyperswitch43kactive

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

delta32kactive

A syntax-highlighting pager for git, diff, grep, rg --json, and blame output

⑂ 555420
rustfs31kactive

🚀2.3x faster than MinIO for 4KB object payloads. RustFS is an open-source, S3-compatible high-performance object storage system supporting migration and coexistence with other S3-compatible platforms such as MinIO and Ceph.

meetily29kmaintenance

Privacy first, AI meeting assistant with 4x faster Parakeet/Whisper live transcription, speaker diarization, and Ollama summarization built on Rust. 100% local processing. no cloud required. Meetily (Meetly Ai - https://meetily.ai) is the #1 Self-hosted, Open-source Ai meeting note taker for macOS & Windows.

Graphite27kactive

Community-built comprehensive 2D content creation appplication for graphic design, digital art, and interactive real-time motion graphics powered by a node-based procedural graphics engine

neon23kmaintenance

Neon: Serverless Postgres. We separated storage and compute to offer autoscaling, code-like database branching, and scale to zero.

⑂ 1.1k552
Ciphey22kactive

⚡ Automatically decrypt encryptions without knowing the key or cipher, decode encodings, and crack hashes ⚡

sonic21kactive

🦔 Fast, lightweight & schema-less search backend. An alternative to Elasticsearch that runs on a few MBs of RAM.

windmill18kactive

Open-source developer platform to power your entire infra and turn scripts into webhooks, workflows and UIs. Fastest workflow engine (13x vs Airflow). Open-source alternative to Retool and Temporal.

dbt-core14kactive

dbt enables data analysts and engineers to transform their data using the same practices that software engineers use to build applications.

xberg9.1kactive

A polyglot document intelligence framework with a Rust core. Extract text, metadata, images, and structured information from PDFs, Office documents, images, and 97+ formats. Available for Rust, Python, Ruby, Java, Go, PHP, Elixir, C#, R, C, TypeScript (Node/Bun/Wasm/Deno)- or use via CLI, REST API, or MCP server.

kreuzberg9.1kactive

A polyglot document intelligence framework with a Rust core. Extract text, metadata, images, and structured information from PDFs, Office documents, images, and 97+ formats. Available for Rust, Python, Ruby, Java, Go, PHP, Elixir, C#, R, C, TypeScript (Node/Bun/Wasm/Deno)- or use via CLI, REST API, or MCP server.

baml9.0kactive

The AI framework that adds the engineering to prompt engineering (Python/TS/Ruby/Java/C#/Rust/Go compatible)

← Browse all repos