Crates.io | toad-stem |
lib.rs | toad-stem |
version | 1.0.0-beta.3 |
source | src |
created_at | 2023-03-11 22:24:02.746446 |
updated_at | 2023-07-13 15:43:23.12595 |
description | This microcrate provides a mutable memory wrapper that is thread-safe and usable on `no_std` platforms. |
homepage | https://github.com/clov-coffee/toad/toad |
repository | https://github.com/clov-coffee/toad/toad |
max_upload_size | |
id | 807574 |
size | 10,972 |
This microcrate provides a mutable memory wrapper that is thread-safe
and usable on no_std
platforms by using [std::sync::RwLock
]
when crate feature std
is enabled (this is the default) and
falling back to [core::cell::Cell
] when std
disabled.
the API of the core struct [Stem
] was chosen to discourage long-lived
immutable references to the cell's contents, so that deadlocks are less likely.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.