Cargo Features

[dependencies]
golem-wasm-ast = { version = "1.1.7", default-features = false, features = ["parser", "writer", "component", "metadata", "analysis", "wave", "bincode", "json", "poem_openapi", "protobuf"] }
default = analysis, bincode, component, json, metadata, parser, poem_openapi, protobuf, wave, writer

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

parser default

Support building up the WASM AST by parsing a binary WASM module or component using the wasmparser library

Enables leb128 and wasmparser ^0.221.2

Affects component::parser, core::parser

writer default

Support writing out a binary WASM module or component using the wasm-encoder library

Enables wasm-encoder ^0.221.2

Affects component::writer, core::writer

component default analysis

Support for the WASM component model

Affects golem-wasm-ast::component

metadata default

Support for extracting producer and other metadata from a binary WASM module or component using the wasm-metadata library

Enables wasm-metadata ^0.221.2

Affects golem-wasm-ast::metadata

analysis default = component

Enables some higher level analysis features built on top of the WASM AST

Affects golem-wasm-ast::analysis

wave default

Wave format representation

Enables wasm-wave =0.6.0

Affects analysis::wave

bincode default

Bincode serialization for analysis output

Enables bincode

json default poem_openapi

Serde JSON serialization for analysis output

Enables serde and serde_json

poem_openapi default = json

poem-openapi instances for analysis output

Enables poem-openapi

protobuf default

Protobuf representation of analysed types

Enables prost

Affects analysis::protobuf