Cargo Features

wasmtime-wasi = { version = "18.0.1", default-features = false, features = ["wasi-common-deprecations", "tokio", "exit", "preview2", "preview1-on-preview2"] }
default = preview1-on-preview2, preview2, wasi-common-deprecations

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

wasi-common-deprecations default exit? tokio?

Enables wasi-common

Affects wasmtime-wasi::sync

tokio = wasi-common-deprecations

Enables tokio of optional wasi-common

Affects wasmtime-wasi::tokio

exit = wasi-common-deprecations

Enables cfg-if

Affects wasmtime-wasi::maybe_exit_on_error

preview2 default preview1-on-preview2

Enables async-trait, bitflags, cap-fs-ext ^2.0.0, cap-net-ext ^2.0.0, cap-rand ^2.0.0, cap-std ^2.0.0, cap-time-ext ^2.0.0, fs-set-times, futures, io-lifetimes, rustix, system-interface ^0.26.0, thiserror, tokio, and tracing, async, component-model and runtime of wasmtime

Affects wasmtime-wasi::preview2

preview1-on-preview2 default = preview2, wiggle

Affects preview2::preview0, preview2::preview1

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

wiggle preview1-on-preview2