Tools
WebAssembly
These WebAssembly tools are useful when working with Hayride.
-
- CLI utilities for inspecting and manipulating WebAssembly modules and components.
-
- A WIT dependency manager for resolving and downloading WIT packages.
-
- A generator that produces Go bindings from WIT definitions.
-
- 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:
-
- A Go compiler with WebAssembly support. To build with the wasip2 target, use:
tinygo build -target=wasip2
- A Go compiler with WebAssembly support. To build with the wasip2 target, use:
-
- Generates Go bindings from WIT definitions.
-
- 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
-
- A Cargo subcommand for building and managing WebAssembly components in Rust.
tip
See the Rust Component Model Guide for detailed instructions and examples.