Cargo Features

wasmtime-environ has no features set by default.

[dependencies]
wasmtime-environ = { version = "26.0.1", features = ["std", "component-model", "demangle", "gc", "compile", "wmemcheck"] }
std compile? demangle? threads? wmemcheck?

Enables std of anyhow, indexmap, object, and wasmparser ^0.218.0

object:

======================================= Misc features.

Enable things that require libstd. Currently, this provides an Error implementation.

component-model

Enables semver and wasmtime-component-util

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

demangle = std

Enables cpp_demangle and rustc-demangle

gc

Affects gc::drc

compile = std

Enables wasm-encoder ^0.218.0 and wasmprinter ^0.218.0, write of gimli and write_core of object

object:

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

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

threads wmemcheck = std