Cargo Features

wasmtime-environ has no features set by default.

[dependencies]
wasmtime-environ = { version = "20.0.1", features = ["component-model", "demangle", "gc", "compile", "threads"] }
component-model

Enables wasm-encoder ^0.202.0, wasmprinter ^0.202.0, and wasmtime-component-util

Affects compile::Compiler.component_compiler, wasmtime-environ::component, wasmtime-environ::fact

demangle

Enables cpp_demangle and rustc-demangle

gc
compile

Enables write of gimli ^0.28.0 and write_core of object ^0.33

object:

Core write support. You will need to enable some file formats too.

Affects component::dfg, wasmtime-environ::fact

threads