This repository contains the example code from the Writing Functions for Everywhere Computer blog post. The contents of the post are also reproduced in BLOGPOST.md.
Wasm components are documeted individually by their source language:
- Rust: A math component that implements addition and division with division by zero error reporting
- JavaScript: A component that implements subtraction
- Python: A component that implements multiplication
Install or download a binary for the wit-deps-cli
. wit-deps
is a simple dependency manager for managing your WIT interfaces. Binaries are available on the wits-deps
releases page or Rust users can install it with cargo
:
cargo install wit-deps-cli
Logging from our Wasm components depends on the propsed WASI logging implementation. This dependency is listed in the WIT dependencies manifest, and we've included it our project by running the wit-deps-cli
:
wit-deps