Build and deploy ZeroClaw Rust binaries to all supported targets: WASM32-WASI (Cloudflare Workers, Deno, Wasmtime), Linux musl (Docker, Lambda, edge), native Linux (x86_64, ARM64, RISC-V), and WebAssembly browsers. Generates platform-specific configs, CI/CD pipelines, and deployment scripts. Uses cargo-cross for cross-compilation and cargo-component for WASM components. Adapted from OpenClaw's deploy-everywhere for Rust's cross-compilation ecosystem.
Compile Rust to every target. Ship WASM to the edge. Deploy native to servers.
@ZeroClaw deploy-everywhere --target wasm32-wasi --platform cloudflare
@ZeroClaw deploy-everywhere --target all # Build all targets
@ZeroClaw deploy-everywhere --target linux-musl-x64 --platform lambda
@ZeroClaw deploy-everywhere --build-only # Build, don't deploy
| Target | Triple | Platform | Use Case |
|---|---|---|---|
wasm32-wasi | wasm32-wasip1 | Cloudflare Workers, Deno | Edge functions |
wasm-browser | wasm32-unknown-unknown | Browser, Node.js | Client-side WASM |
linux-musl-x64 |
x86_64-unknown-linux-musl |
| Docker, Lambda |
| Serverless |
linux-musl-arm64 | aarch64-unknown-linux-musl | AWS Graviton | ARM servers |
linux-riscv64 | riscv64gc-unknown-linux-gnu | LicheeRV Nano | Edge hardware |
linux-native | host triple | Local | Development |
# WASM edge (Cloudflare Workers)
cargo build --target wasm32-wasip1 --release
wasm-opt -Oz dist/zeroclaw.wasm -o dist/zeroclaw-opt.wasm
# Linux musl (truly static binary, no libc deps)
cross build --target x86_64-unknown-linux-musl --release
# Size report
ls -lh target/*/release/zeroclaw
# wasm32: 1.2MB → 0.8MB (after wasm-opt)
# musl: 3.8MB (statically linked, no runtime deps)
# wrangler.toml (generated)
name = "zeroclaw-edge"
main = "dist/zeroclaw-opt.wasm"
compatibility_date = "2025-01-01"
# serverless.yml (generated)