Cargo Features

[dependencies]
regalloc2 = { version = "0.9.3", 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

Enables std-specific features such as the Error trait for RegAllocError.

checker fuzzing?

Enables generation of DefAlloc edits for the checker.

trace-log fuzzing?

Enables detailed logging which can be somewhat expensive.

fuzzing = checker, libfuzzer-sys, 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.

libfuzzer-sys fuzzing?

Enables libfuzzer-sys

The below are only needed for fuzzing.