Cargo Features

static_alloc has no features set by default.

static-alloc = { version = "0.2.5", features = ["alloc", "nightly_try_reserve", "nightly_chain", "polyfill"] }
alloc nightly_chain?

For apis depending on "try_reserve" (#48043).
Currently only used in a test for ensure future opportunities.

nightly_chain = alloc

Enables the unsync::Chain module. Note that this is explicitly outside the SemVer stability guarantees!

polyfill = atomic-polyfill

Enables the use of the atomic-polyfill crate to support targets without native atomic CAS operations

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

atomic-polyfill polyfill?