Registry / utility / atomic-enum

atomic-enum

JSON →
library0.3.0rscratesunverified

An attribute to create an atomic wrapper around a C-style enum.

utilityasync
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.

use atomic_enum::atomic_enum;

Generate an atomic wrapper for a C-style enum.

use atomic_enum::atomic_enum; #[atomic_enum] #[derive(PartialEq)] enum Color { Red, Green, Blue, } fn main() { let atomic = AtomicColor::new(Color::Red); println!("Value: {:?}", atomic.load(std::sync::atomic::Ordering::SeqCst)); }
Debug
Known footguns

No known footguns recorded.

Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
0 hits · last 30 days

No traffic data recorded yet.

Resources