Cargo Features

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

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

Use std.

Note:

  • This implicitly enables the alloc feature.
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.