Cargo Features

[dependencies]
wasmtime_runtime_layer = { version = "31.0.0", default-features = false, features = ["std", "cranelift", "winch"] }
default = cranelift, std

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

std default

Enables std of anyhow, wasm_runtime_layer, and wasmtime

wasmtime:

Enables support for the Rust standard library, enabling APIs that require types and traits from Rust's std such as Path and Error.

Many features of the Wasmtime crate implicitly require this std feature. This will be automatically enabled if necessary.

cranelift default

Enables cranelift of wasmtime

wasmtime:

An on-by-default feature enabling runtime compilation of WebAssembly modules with the Cranelift compiler. Cranelift is the default compilation backend of Wasmtime. If disabled then WebAssembly modules can only be created from precompiled WebAssembly modules.

winch

Enables winch of wasmtime

wasmtime:

Enables support for Winch, the WebAssembly baseline compiler. The Winch compiler strategy in Config will be available. It is currently in active development and shouldn't be used in production applications.

wasmtime_runtime_layer has 4 features without comments.