Skip to content

Commit 2b31697

Browse files
committed
Mention conquer-once
1 parent 4dc732e commit 2b31697

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

text/0000-standard-lazy-types.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,8 @@ While it is possible to implement blocking in `#[no_std]` via a spin lock, we ex
384384
Spin locks are a sharp tool, which should only be used in specific circumstances (namely, when you have full control over thread scheduling).
385385
`#[no_std]` code might end up in user space applications with preemptive scheduling, where unbounded spin locks are inappropriate.
386386

387+
A spin-lock based implementation of `OnceCell` is provided on crates.io in [`conquer-once`] crate.
388+
387389
## Poisoning
388390

389391
As a cell can be empty or fully initialized, the proposed API does not use poisoning.
@@ -506,3 +508,4 @@ This design doesn't always work in Rust, as closing over `self` runs afoul of th
506508
[`lazy_static`]: https://crates.io/crates/lazy_static
507509
[`lazycell`]: https://crates.io/crates/lazycell
508510
[`once_cell`]: https://crates.io/crates/once_cell
511+
[`conquer-once`]: https://github.com/oliver-giersch/conquer-once

0 commit comments

Comments
 (0)