Cargo Features
[dependencies]
wit-parser = { version = "0.219.1", default-features = false, features = ["serde", "decoding", "wat"] }
- default = decoding, serde
-
These default features are set whenever
wit-parser
is added without
somewhere in the dependency tree.default-features = false - serde default = serde_json
-
Enables support for
derive(Serialize, Deserialize)
on many structures, such asResolve
, which can assist when encodingResolve
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.