Skip to main content

Tools

WebAssembly

These WebAssembly tools are useful when working with Hayride.

  • wasm-tools

    • CLI utilities for inspecting and manipulating WebAssembly modules and components.
  • wit-deps

    • A WIT dependency manager for resolving and downloading WIT packages.
  • wit-bindgen-go

    • A generator that produces Go bindings from WIT definitions.
  • wac

    • A CLI tool for composing and packaging WebAssembly components together.
tip

For a complete guide on using these tools with Rust and WebAssembly components, refer to the Rust Component Model Guide

Go

Go can be used to build WebAssembly components through the following tools:

  • TinyGo

    • A Go compiler with WebAssembly support. To build with the wasip2 target, use: tinygo build -target=wasip2
  • wit-bindgen-go

    • Generates Go bindings from WIT definitions.
  • hayride bindings

    • Pre-generated Go bindings for Hayride, including helpful wrapper utilities.
tip

For a complete guide to Go tooling and WebAssembly component builds, see the Go Component Model Guide

Rust

Rust can be used to build WebAssembly components through the following tools:

  • WASI-P2 Target

    • Add the appropriate Rust target:
    • rustup target add wasm32-wasip2
  • cargo component

    • A Cargo subcommand for building and managing WebAssembly components in Rust.
tip

See the Rust Component Model Guide for detailed instructions and examples.