Cargo Features

[dependencies]
zydis = { version = "4.1.1", default-features = false, features = ["std", "alloc", "full-decoder", "formatter", "encoder", "serialization", "nolibc"] }
default = formatter, full-decoder, std

These default features are set whenever zydis is added without default-features = false somewhere in the dependency tree.

std default = alloc
alloc encoder? formatter std
full-decoder default encoder? formatter

Affects decoder::FullInstruction, decoder::VisibleOperands, decoder::AllOperands, decoder::OperandArrayVec

formatter default = alloc, full-decoder
encoder = alloc, full-decoder
serialization = serde

Enables serde of bitflags

nolibc

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 serialization?