Some time ago I wrote a set of buck2 rules for building wasm components. It provides hermetic toolchains for the full wasm component workflow: compiling Rust/C/C++/JS to core modules, generating WIT bindings (wit-bindgen), creating components (wasm-tools), composing (wac) etc. WIT dependencies are resolved automatically from OCI registries via wkg.
The nice thing about integrating component tooling into a build system like Buck2 is that it understands the full dependency graph -- if you modify just a composition file or a wit interface definition, only the affected downstream targets get rebuilt.
The repo includes examples:
https://github.com/andreiltd/wasmono
Last updated: Feb 24 2026 at 04:36 UTC