Cargo Features
[dependencies]
regalloc2 = { version = "0.15.1", default-features = false, features = ["std", "checker", "trace-log", "fuzzing", "enable-serde"] }
- default = std
-
The
stdfeature is set by default wheneverregalloc2is added withoutsomewhere in the dependency tree.default-features = false - std default
-
Currently does nothing, but historically enabled some
stdfeatures such as theErrortrait. - 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.