4 releases

0.2.1 Jan 2, 2025
0.2.0 Dec 30, 2024
0.1.1 Dec 28, 2024
0.1.0 Dec 28, 2024

#842 in Concurrency

MPL-2.0 license

30KB
545 lines

Maintenance Crates.io version Docs.rs Size License

atomiq

Convenient tool for atomics in Rust.

Inspired by the atomig crate, but with a more flexible design.

Features

  • Common atomic struct Atomic<T>.
  • Traits like Atomizable with a derive macro for easy implementation.
  • Standard library/core implementation.
  • Loom implementation for testing (loom crate feature).
  • Atomic option type.

Dependencies

~0–23MB
~291K SLoC