Wasm components example

This repository contains an example of a WebAssembly interface, implemented in Rust as a WebAssembly component, then consumed from other Rust and C++ components.

It is a showcase of the wit-bindgen tooling from the Bytecode Alliance.

Building, linking, and executing

# building the implementation
$ cd rust-wasi-impl && make build

# building, linking, and running the C++ example
$ cd cpp-consumer && make bindgen build link run

# building, linking, and running the Rust example
$ cd rust-consumer && make build link run

Prerequisites