Packages
Load WebAssembly components and call them as tools from Erlang, Elixir and MCP
Current section
Files
Jump to
Current section
Files
docs/features.md
# Features
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
| feature | status |
| --- | --- |
| WIT value types: bool, integers, floats, char, string, list, record, tuple, variant, enum, flags, option, result | supported, natively and in JSON (`option<option<T>>` has no JSON form) |
| functions of the world | supported |
| functions of exported interfaces, versioned or not | supported, named `interface_function` |
| two interfaces with the same name | supported: 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, http | supported, under the capabilities granted |
| imports of an interface of your application | supported ([Host interfaces](host-interfaces.md)) |
| resources (`own`, `borrow`), across calls | not supported: a handle dies with the instance of its call. Use erlang_wasm's `wasm_component` |
| async functions, streams, futures | not supported |
| WASI 0.3 components | not supported (erlang_wasm runs them; wasm_tools gives 0.2 imports only) |
| `wasi:config` | not supported: erlang_wasm has no host for it, so a component that imports it does not load |
| a fresh instance per call | always; no instance is reused or kept between calls |
| snapshots of an initialized instance | not yet: a component that embeds an interpreter starts it on every call |
## Capabilities and limits
| feature | status |
| --- | --- |
| directories, read-only or writable | supported |
| environment variables, given explicitly | supported |
| HTTP by host name, wildcard or literal address, non-public addresses refused | supported (erlang_wasm 0.15) |
| sockets to addresses and ports | supported, through an erlang_wasm network grant |
| sockets without a grant | the interfaces link, every operation is refused |
| stdout and stderr | discarded |
| fuel, deadline, memory, call depth, host calls, heap, heap floor | supported, lowered per call |
| a refused memory grow reported as `memory_limit` | supported (erlang_wasm 0.15) |
| the compiled tier | not used: finite fuel keeps the interpreter |
## Registries and MCP
| feature | status |
| --- | --- |
| several independent registries in one node | supported |
| bounded concurrency | supported; a call past the bound is refused, not queued |
| counters and an observer | supported |
| MCP tools, with input and output schemas, titles, descriptions, annotations | supported (barrel_mcp 4.9) |
| MCP cancel and deadline | supported |
| MCP scopes per listener | supported (barrel_mcp's `scope`) |
| MCP resources or prompts from a component | not supported |
| MCP progress from a component | not 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](benchmarks.md). Times are for one caller; "the next ten" are the
ten calls after the first.
| toolchain | result |
| --- | --- |
| Rust, `cargo build --target wasm32-wasip2`, wit-bindgen 0.62 | works; 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.0 | works: 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.1 | works: 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-js` | do 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.