Registry / utility / atomic-polyfill

atomic-polyfill

JSON →
library1.0.3rscratesunverified

Atomic polyfills for targets where they're not available.

# Cargo.toml [dependencies] atomic-polyfill = "1.0.3"
INSTALL
IMPORT
SIG · ATOMIC-POLYFILL
A
atomic-polyfill
utilityrustv1.0.3
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.

AtomicU32
use atomic_polyfill::AtomicU32;

Use atomic operations on targets without native atomics.

use atomic_polyfill::AtomicU32; use core::sync::atomic::Ordering; fn main() { let val = AtomicU32::new(42); println!("Value: {}", val.load(Ordering::Relaxed)); }
Debug
Known issues
gotchaRequires enabling the appropriate feature for the target architecture (e.g., "armv6m").
fix
Add `features = ["armv6m"]` to your Cargo.toml dependency for Cortex-M0 targets.
affects: >=1.0.0
Upgrade
Version history
1.0.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
OpenAI (training)
2
Meta
1
Resources
atomic-polyfill — cargo add atomic-polyfill · libregistry