Cargo Features

portable-atomic-util has no features set by default.

[dependencies]
portable-atomic-util = { version = "0.2.4", features = ["std", "alloc"] }
std = alloc

Use std.

Note:

  • This implicitly enables the alloc feature.

Affects portable-atomic-util::task

alloc std?

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.

Affects portable-atomic-util::task