Cargo Features

[dependencies]
wee_alloc = { version = "0.4.5", default-features = false, features = ["nightly", "extra_assertions", "size_classes", "static_array_backend", "use_std_for_test_debugging"] }
default = size_classes

The size_classes feature is set by default whenever wee_alloc is added without default-features = false somewhere in the dependency tree.

nightly
extra_assertions

Enable extra, expensive integrity allocations.

size_classes default

Enable size classes for amortized *O(1)* small allocations.

static_array_backend = spin

Enable fixed-sized, OS-independent backing memory implementation

use_std_for_test_debugging

This is for internal use only.

Features from optional dependencies

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

spin static_array_backend?

Enables spin ^0.5