Cargo Features

[dependencies]
regalloc2 = { version = "0.15.1", default-features = false, features = ["std", "checker", "trace-log", "fuzzing", "enable-serde"] }
default = std

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

std default

Currently does nothing, but historically enabled some std features such as the Error trait.

checker fuzzing?

Enables generation of DefAlloc edits for the checker.

trace-log fuzzing?

Enables detailed logging which can be somewhat expensive.

fuzzing = arbitrary, arbtest, checker, trace-log

Exposes the internal API for fuzzing.

Affects regalloc2::fuzzing

enable-serde = serde

Enables serde for exposed types.

Affects regalloc2::serialize

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

serde enable-serde?

Enables serde

Optional serde support, enabled by feature below.

arbtest fuzzing?
arbitrary fuzzing?

Enables arbitrary

The below are only needed for fuzzing.