Cargo Features

[dependencies]
wasm-encoder = { version = "0.221.0", default-features = false, features = ["component-model", "wasmparser"] }
default = component-model

The component-model feature is set by default whenever wasm-encoder is added without default-features = false somewhere in the dependency tree.

component-model default

On-by-default: conditional support for emitting components in addition to core modules.

Enables component-model of optional wasmparser

Enable this dependency to get a bunch of From<wasmparser::Foo> for wasm_encoder::Foo impls.

Features from optional dependencies

wasmparser implicit feature

Affects wasm-encoder::reencode