Cargo Features
[dependencies]
wast = { version = "250.0.0", default-features = false, features = ["wasm-module", "dwarf", "component-model"] }
- default = component-model, wasm-module
-
These default features are set whenever
wastis added withoutsomewhere in the dependency tree.default-features = false - wasm-module default component-model
-
Includes default parsing support for
*.watand*.wastfiles (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
*.watsource.Enables gimli ^0.32.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…