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.

275
Repositories
1.8M
Total stars
355
Active
392
Owners
Browse 440 repositories using lazy_static in Repos →
Often used with
Used by these organizations
50 of 440 repositories · ranked by stars
rustdesk116kactive

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

union74kactive

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

openinterpreter64kactive

A lightweight coding agent for open models like Deepseek, Kimi, and Qwen

⑂ 5.6k270
rtk60kactive

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

⑂ 3.7k1.1k
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

comprehensive-rust33kactive

This is the Rust course used by the Android team at Google. It provides you the material to quickly teach Rust.

rustfs29kactive

🚀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.

wezterm27kactive

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust

⑂ 1.5k1.7k
Graphite26kactive

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

⑂ 1.2k531
flow22kactive

Adds static typing to JavaScript to improve developer productivity and code quality.

⑂ 1.9k604
Ciphey21kactive

⚡ 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.

turso19kactive

Turso is an in-process SQL database, compatible with SQLite.

⑂ 1.0k695
relay19kactive

Relay is a JavaScript framework for building data-driven React applications.

⑂ 1.9k842
windmill17kactive

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.

clap16kactive

A full featured, fast Command Line Argument Parser for Rust

⑂ 1.2k438
meetily13kactive

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.

talent-plan11kdormant

open source training courses about distributed database and distributed systems

cockpit-tools11kactive

🚀 通用 AI IDE 账号管理工具:支持 Antigravity / Codex / GitHub Copilot / Windsurf / Kiro / Cursor / Gemini-cli / CodeBuddy,多账号切换、配额监控、自动唤醒与多开实例管理。 🚀 Universal AI IDE account manager for Antigravity / Codex / GitHub Copilot / Windsurf / Kiro / Cursor / Gemini-cli / CodeBuddy, with multi-account switching, quota monitoring, wake-up automation, and multi-insta

⑂ 978262
← Browse all repos