#wasm-component #trampoline #linker #host #together #context #wasm-interface #wit #securely

wasm-component-trampoline

A library for linking WASM components together using host trampoline functions

6 releases (2 stable)

Uses new Rust 2024

34.0.1 Jun 25, 2025
33.0.1 Jun 25, 2025
0.1.2 Jun 13, 2025
0.1.1 Jun 8, 2025
0.1.0 Jun 7, 2025

#539 in WebAssembly

Download history 218/week @ 2025-06-04 144/week @ 2025-06-11 14/week @ 2025-06-18 410/week @ 2025-06-25

786 downloads per month

MIT license

66KB
1.5K SLoC

WASM Component Trampoline

Crates.io Documentation License

Library for linking WASM components together using host "trampoline" functions, that can securely read/modify the host context between component calls.

Designed for versioned WIT (WASM Interface Type) components, but can be used with others. Versioned dependency resolution between components is done in the same style as the Wasmtime component linker (docs).

WASM Component Trampoline Example Diagram

Installation

cargo add wasm-component-trampoline

Usage

Dependencies

~27–38MB
~716K SLoC