Install
once_cell
Single assignment cells and lazy values.
1.21.4Latest, 12 Mar 2026
435MDownloads, last 90 days
0Advisories on the latest
2Advisories, all versions
MIT OR Apache-2.0Licence
2.1KStars
4.0/10OpenSSF Scorecard
Source · Ask AI Mode · · Markdown
Known advisories
| Severity | Advisory | Fix | Published |
|---|---|---|---|
| High | Improper Input Validation in once_cell CVE-2019-16141 | Fixed in 1.0.1 | 25 Aug 2021 |
| Panic during initialization of Lazy<T> might trigger undefined behavior CVE-2019-16141 | Fixed in 1.0.1 | 1 Sep 2019 |
In the news
- found duplicate lang item `panic_impl` the lang item is first defined in crate `std` (which `once_cell` depends on) stackoverflow.com, 30 Dec 2024
- Duplicate lang item in crate `std` (which `once_cell` depends on): `panic_impl` stackoverflow.com, 9 Dec 2024
Sources: crates.io, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.