Features

View Source

This page says what wasm_tools supports today, what it does not, and which toolchains were checked, with versions. Read it before you choose a language for your components or rely on a feature. Everything marked supported is covered by the test suites.

Components

featurestatus
WIT value types: bool, integers, floats, char, string, list, record, tuple, variant, enum, flags, option, resultsupported, natively and in JSON (option<option<T>> has no JSON form)
functions of the worldsupported
functions of exported interfaces, versioned or notsupported, named interface_function
two interfaces with the same namesupported: each by its export name, or picked one at a time into a registry
imports of WASI 0.2: cli, clocks, random, io, filesystem, sockets, httpsupported, under the capabilities granted
imports of an interface of your applicationsupported (Host interfaces)
resources (own, borrow), across callsnot supported: a handle dies with the instance of its call. Use erlang_wasm's wasm_component
async functions, streams, futuresnot supported
WASI 0.3 componentsnot supported (erlang_wasm runs them; wasm_tools gives 0.2 imports only)
wasi:confignot supported: erlang_wasm has no host for it, so a component that imports it does not load
a fresh instance per callalways; no instance is reused or kept between calls
snapshots of an initialized instancenot yet: a component that embeds an interpreter starts it on every call

Capabilities and limits

featurestatus
directories, read-only or writablesupported
environment variables, given explicitlysupported
HTTP by host name, wildcard or literal address, non-public addresses refusedsupported (erlang_wasm 0.15)
sockets to addresses and portssupported, through an erlang_wasm network grant
sockets without a grantthe interfaces link, every operation is refused
stdout and stderrdiscarded
fuel, deadline, memory, call depth, host calls, heap, heap floorsupported, lowered per call
a refused memory grow reported as memory_limitsupported (erlang_wasm 0.15)
the compiled tiernot used: finite fuel keeps the interpreter

Registries and MCP

featurestatus
several independent registries in one nodesupported
bounded concurrencysupported; a call past the bound is refused, not queued
counters and an observersupported
MCP tools, with input and output schemas, titles, descriptions, annotationssupported (barrel_mcp 4.9)
MCP cancel and deadlinesupported
MCP scopes per listenersupported (barrel_mcp's scope)
MCP resources or prompts from a componentnot supported
MCP progress from a componentnot supported
managing components over MCP (load, grant)not supported, on purpose

Toolchains checked

Each was checked on 2026-11-30 by building the calculator WIT (test/fixtures/component/calculator/wit/calculator.wit) or by running the component as published, then inspecting, loading and calling it with wasm_tools 0.1.0 on erlang_wasm 0.15.1, under the default limits, on the machine of Benchmarks. Times are for one caller; "the next ten" are the ten calls after the first.

toolchainresult
Rust, cargo build --target wasm32-wasip2, wit-bindgen 0.62works; a call of the calculator takes 0.25 ms (median of 200)
Rust, wasm32-unknown-unknown and wasm-tools component new (wasm-tools 1.256.0)works; a call of multi_iface's math_add takes 0.31 ms (median of 200)
JavaScript, jco 1.42.0 with componentize-js 0.24.0works: the 12.0 MB component loads in 3.5 s; its first call takes 63 ms, the next ten 25 to 34 ms
Python, componentize-py 0.25.1works: the 18.3 MB component loads in 1.5 s; its first call takes 136 ms, the next ten 100 to 104 ms
Wassette's fetch-rs, as published (18.1 MB debug build)works unchanged with an http grant: it fetches and converts HTML in 116 ms the first time and 49 to 60 ms after; a host not granted is refused in 10 ms
Wassette's get-weather-js, github-jsdo not load: they import wasi:config/store, which erlang_wasm does not provide (checked on 0.15.0; 0.15.1 adds no such host)

Before 0.15.1, erlang_wasm took minutes to link a component that embeds an interpreter: on 0.15.0 the Python calculator never finished its first call and the JavaScript one took about 19 s per call. wasm_tools 0.1.0 requires 0.15.1.

Same answers as another runtime: wasm_tools_interop_SUITE calls the test components in wasmtime 50.0.1 (wasmtime run --invoke) and compares, integers past 2^53, bytes, strings and records included.