Cargo Features

[dependencies]
wat = { version = "1.221.2", default-features = false, features = ["dwarf", "component-model"] }
default = component-model

The component-model feature is set by default whenever wat is added without default-features = false somewhere in the dependency tree.

dwarf

Off-by-default feature to support emitting DWARF debugging information in parsed binaries pointing back to source locations in the original *.wat source.

Enables dwarf of wast

component-model default

On-by-default feature to support parsing the component model text format.

Enables component-model of wast