mirror of
https://github.com/openharmony/third_party_rust_once_cell.git
synced 2026-06-30 21:18:01 -04:00
Add references to generic_once_cell
This commit is contained in:
@@ -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).
|
||||
|
||||
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user