Registry / utility / sync-unsafe-cell

sync-unsafe-cell

JSON →
library0.1.1rscratesunverified

A backport of the SyncUnsafeCell standard library type for use in older Rust versions.

# Cargo.toml [dependencies] sync-unsafe-cell = "0.1.1"
INSTALL
IMPORT
SIG · SYNC-UNSAFE-CELL
S
sync-unsafe-cell
utilityrustv0.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SyncUnsafeCell
use sync_unsafe_cell::SyncUnsafeCell;

Creates and accesses a SyncUnsafeCell.

use sync_unsafe_cell::SyncUnsafeCell; fn main() { let cell = SyncUnsafeCell::new(42); println!("Cell value: {}", unsafe { *cell.get() }); }
Debug
Known issues
gotchaUnsafe access required; may cause undefined behavior if misused.
fix
Ensure proper synchronization when accessing the inner value.
affects: >=0.1.0
Upgrade
Version history
0.1.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
sync-unsafe-cell — cargo add sync-unsafe-cell · libregistry