Development of WASI has moved to the WASI CG Subgroup; see the WASI repository and the interfaces page on wasi.dev.
For Wasmtime embedders using the C API with the component model:
- Add core WASI imports to your component linker with
wasmtime_component_linker_add_wasip2. - If your component imports
wasi:http, also addwasmtime_component_linker_add_wasi_http. - Configure store-local WASI state with
wasmtime_context_set_wasi, and initialize WASI HTTP withwasmtime_context_set_wasi_http(after WASI).
See these headers for current signatures and feature-gating details:
For legacy preview1 documentation, see the preview1 docs.