Cargo Features
[dependencies]
wit-encoder = { version = "0.220.0", default-features = false, features = ["serde", "from-parser"] }
- default = from-parser, serde
-
These default features are set whenever
wit-encoder
is added without
somewhere in the dependency tree.default-features = false - serde default
-
Enables JSON serialization/deserialization of the wit-encoder structures.
*Note*: The JSON that this generates is different from the JSON generated from wit-parser.
If you're looking to create WIT from JSON, then this is the crate and feature for you. But if you're parsing WIT and reading the output through JSON, then wit-parser is probably the better option.
*Note*: The exact structure of the JSON is likely not going to be very stable over time,
so slight tweaks and variants should be expected as this crate evolves. - from-parser default = id-arena, wit-parser
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.