Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.55 KB

README.md

File metadata and controls

35 lines (25 loc) · 1.55 KB

writing-functions-blogpost-2024

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

Setup

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

WIT Dependecies

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