Cargo Features

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

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

std default

A feature which enables implementations of std::error::Error as appropriate.

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