Examples and configuration templates for Run 2.0.
These examples have complete, buildable code:
Cross-language composition: Rust calling Python via WIT.
cd polyglot
run v2 build
run v2 testSame WIT interface implemented in Go, JS, TS, and Zig.
cd polyglot-sdk
run v2 buildThese show run.toml configuration patterns. Add your own component implementations:
| Template | Purpose |
|---|---|
| microservices/ | Multi-component orchestration |
| edge-deploy/ | Cloudflare/AWS/Vercel deployment |
| docker-hybrid/ | Docker Compose migration |
| ci-cd/ | Reproducible builds |
| dev-experience/ | Hot reload development |
# Working example
cd polyglot
run v2 build
run v2 test
# Configuration template (add your components first)
cd microservices
# Edit run.toml, add your .wasm files
run v2 dev