This example demonstrates an early prototype of component model support in Kotlin. In particular, the structure of the bindings is subject to change and is certainly not final.
This project requires make, git, and sufficiently recent versions of cargo and wasm-tools.
To run the final component, a sufficiently recent version of wasmtime is also required.
Confirmed working versions:
cargo --version
# cargo 1.93.1 (083ac5135 2025-12-15)
wasm-tools --version
# wasm-tools 1.244.0 (d4e317f22 2026-01-06)
wasmtime --version
# wasmtime 41.0.1 (c30fce86b 2026-01-26)A specific Kotlin compiler version is already selected in the Gradle config and does not need to be installed manually.
Neither wit-bindgen nor wit-deps/wkg are required to be pre-installed, as wit dependencies are already fully resolved, and the required wit-bindgen fork is cloned and built manually.
make # or make setup-and-runmake setupis always required in order to clone the aforementioned wit-bindgen fork and build it.
Then
make runcompiles and runs, while
make compileonly compiles.