Cargo Features

[dependencies]
wit-parser = { version = "0.206.0", default-features = false, features = ["serde", "decoding", "wat"] }
default = decoding, serde

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

serde default = serde_json

Enables support for derive(Serialize, Deserialize) on many structures, such as Resolve, which can assist when encoding Resolve as JSON for example.

Enables serde and serde_derive, serde of indexmap

decoding default wat?

Enables support for decoding WIT from WebAssembly. This can be done to support decoding a WIT package encoded as wasm automatically.

Enables wasmparser

Affects wit-parser::decoding

wat = decoding

Enables support for parsing the wasm text format in conjunction with the decoding feature.

Enables wat

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_json serde