Cargo Features
[dependencies]
wast = { version = "219.0.1", default-features = false, features = ["wasm-module", "dwarf", "component-model"] }
- default = component-model, wasm-module
-
These default features are set whenever
wast
is added without
somewhere in the dependency tree.default-features = false - wasm-module default component-model
-
Includes default parsing support for
*.wat
and*.wast
files (wasm modules). This isn't always needed though if you're parsing just an s-expression based format. If you'd like to slim down this dependency to just the lexer, parser framework, and token support, this feature can be disabled.This feature is turned on by default.
- 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 gimli ^0.30.0
- component-model default = wasm-module
-
On-by-default this builds in support for parsing the text format of components.
Enables component-model of wasm-encoder
Affects
wast::component
…