Expand description

Synchronization primitives built with portable-atomic.

  • Provide Arc. (optional, requires the std or alloc feature)

See #1 for other primitives being considered for addition to this crate.

Compiler support: requires rustc 1.34+

Optional features

  • std
    Use std.

    Note:

    • This implicitly enables the alloc feature.
  • alloc
    Use alloc.

    Note:

    • The MSRV when this feature is enabled and the std feature is not enabled is Rust 1.36 that alloc crate stabilized.

Structs

  • Arcalloc or std
    A thread-safe, strongly reference counted pointer.
  • Weakalloc or std
    A weakly reference counted pointer.