| Crates.io | spincell |
| lib.rs | spincell |
| version | 0.2.0 |
| created_at | 2025-10-08 07:34:56.001086+00 |
| updated_at | 2025-10-09 15:09:53.736976+00 |
| description | A small, lightweight thread-safe cell implementation targeting no_std environments. |
| homepage | |
| repository | https://github.com/ushiba0/spincell |
| max_upload_size | |
| id | 1873620 |
| size | 8,559 |
A small, lightweight thread-safe cell implementation targeting no_std environments.
fn main() {
// SpinCell behaves like a LazyCell.
let one = SpinCell::new(1usize);
assert_eq!(1, *one);
}
Support for pluggable lock implementations (a lock_api-like abstraction). Allow users to choose different locking strategies (e.g., spin vs parking vs OS mutex) for performance and platform constraints.
Important: starting with version 0.2.0 this crate introduces breaking changes and is not backwards compatible with the 0.1.x series. Versions up to 1.0.0 are beta releases and may contain breaking changes.