lazy_static
Cargov1.5.0A macro for declaring lazily evaluated statics in Rust.
0
Weekly downloads
0
Dependents
0
Dependencies
0/100
Popularity
Overview
lazy_static is an Cargo package that a macro for declaring lazily evaluated statics in Rust. The latest version is 1.5.0.
Who should use it
Teams working in the Cargo ecosystem who need a macro for declaring lazily evaluated statics in Rust and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your Cargo stack.
Pros
- Zero runtime dependencies — minimal footprint.
Cons
- No bundled TypeScript types (may require a separate @types package).
- No license detected — review usage terms before adopting.
Auto-generated from collected registry metadata. No external claims are inferred.
Alternatives to lazy_static
Version history
| Version | Published | License |
|---|---|---|
| 1.5.0latest | 2 years ago | MIT OR Apache-2.0 |
| 1.1.1 | 6 years ago | MIT/Apache-2.0 |
| 1.4.0 | 6 years ago | MIT/Apache-2.0 |
| 1.3.0 | 7 years ago | MIT/Apache-2.0 |
| 1.2.0 | 7 years ago | MIT/Apache-2.0 |
| 1.1.0 | 8 years ago | MIT/Apache-2.0 |
| 1.0.2 | 8 years ago | MIT/Apache-2.0 |
| 1.0.1 | 8 years ago | MIT/Apache-2.0 |
| 1.0.0 | 8 years ago | MIT/Apache-2.0 |
| 0.2.11 | 8 years ago | MIT/Apache-2.0 |
| 0.2.10 | 8 years ago | MIT/Apache-2.0 |
| 0.2.9 | 8 years ago | MIT/Apache-2.0 |
| 0.2.8 | 9 years ago | MIT/Apache-2.0 |
| 0.2.7 | 9 years ago | MIT/Apache-2.0 |
| 0.2.6 | 9 years ago | MIT |
| 0.2.5 | 9 years ago | MIT |
| 0.2.4 | 9 years ago | MIT |
| 0.2.3 | 9 years ago | MIT |
| 0.2.2 | 9 years ago | MIT |
| 0.2.1 | 10 years ago | MIT |
Maintainers
Frequently asked questions
How do I install lazy_static?
Run `cargo add lazy_static` to add lazy_static to your Cargo project.
What license is lazy_static released under?
No license was detected in lazy_static's metadata; review the repository before use.
How popular is lazy_static?
lazy_static has approximately 0 downloads per week.