From 47bf9ae9941c43109b703cb692b47d82360e8914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Thu, 10 Nov 2022 14:57:44 +0100 Subject: [PATCH 1/2] Readme: Sync related crates to docs --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index de65dbb..cc95003 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,7 @@ More patterns and use-cases are in the [docs](https://docs.rs/once_cell/)! * [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) The API of `once_cell` is being proposed for inclusion in [`std`](https://github.com/rust-lang/rfcs/pull/2788). From 6d46f401f72f5a476e5b4dd3e6fa6a44eca9824e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Thu, 10 Nov 2022 15:02:43 +0100 Subject: [PATCH 2/2] Add references to generic_once_cell --- README.md | 1 + src/lib.rs | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index cc95003..737f2de 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,7 @@ More patterns and use-cases are in the [docs](https://docs.rs/once_cell/)! * [mitochondria](https://crates.io/crates/mitochondria) * [lazy_static](https://crates.io/crates/lazy_static) * [async_once_cell](https://crates.io/crates/async_once_cell) +* [generic_once_cell](https://crates.io/crates/generic_once_cell) (bring your own mutex) The API of `once_cell` is being proposed for inclusion in [`std`](https://github.com/rust-lang/rfcs/pull/2788). diff --git a/src/lib.rs b/src/lib.rs index 41313f7..2f6cdac 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -314,6 +314,10 @@ //! **Does this crate support async?** //! //! No, but you can use [`async_once_cell`](https://crates.io/crates/async_once_cell) instead. +//! +//! **Can I bring my own mutex?** +//! +//! There is [generic_once_cell](https://crates.io/crates/generic_once_cell) to allow just that. //! //! # Related crates //! @@ -323,6 +327,7 @@ //! * [mitochondria](https://crates.io/crates/mitochondria) //! * [lazy_static](https://crates.io/crates/lazy_static) //! * [async_once_cell](https://crates.io/crates/async_once_cell) +//! * [generic_once_cell](https://crates.io/crates/generic_once_cell) (bring your own mutex) //! //! 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).