From 39a47e32d3ce22c42392e9fedf9b0646255a74d4 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 19 May 2022 16:22:40 +0100 Subject: [PATCH] release 1.11.0 --- CHANGELOG.md | 7 ++++++- Cargo.toml | 2 +- src/lib.rs | 5 +++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 497fbbf..36cc79a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,14 @@ # Changelog +## Unreleased + +- + ## 1.11 -- Add `OnceCell::with_value` to create initialized `OnceCell` at compile time. +- Add `OnceCell::with_value` to create initialized `OnceCell` in `const` context. - Improve `Clone` implementation for `OnceCell`. +- Rewrite `parking_lot` version on top of `parking_lot_core`, for even smaller cells! ## 1.10 diff --git a/Cargo.toml b/Cargo.toml index fadaef7..34a75c2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "once_cell" -version = "1.10.0" +version = "1.11.0" authors = ["Aleksey Kladov "] license = "MIT OR Apache-2.0" edition = "2018" diff --git a/src/lib.rs b/src/lib.rs index b344251..75d1c06 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -311,6 +311,10 @@ //! At the moment, `unsync` has an additional benefit that reentrant initialization causes a panic, which //! might be easier to debug than a deadlock. //! +//! **Does this crate support async?** +//! +//! No, but you can use [`async_once_cell`](https://crates.io/crates/async_once_cell) instead. +//! //! # Related crates //! //! * [double-checked-cell](https://github.com/niklasf/double-checked-cell) @@ -318,6 +322,7 @@ //! * [lazycell](https://crates.io/crates/lazycell) //! * [mitochondria](https://crates.io/crates/mitochondria) //! * [lazy_static](https://crates.io/crates/lazy_static) +//! * [async_once_cell](https://crates.io/crates/async_once_cell) //! //! Most of this crate's functionality is available in `std` in nightly Rust. //! See the [tracking issue](https://github.com/rust-lang/rust/issues/74465).