Early-Stage Notice (0.0.x): Wings is under rapid iteration with no backward-compatibility guarantees across syntax, the managed C ABI, artifact manifests (
manifest.json/bundle.json), CLI flags, or Rust APIs. Always recompile.wingssources after upgrading.
1. Install the Toolchain
Prerequisites: Rust 1.85+ and a system C linker (cc, overridable via CC). Primary supported targets are macOS AArch64 (Apple Silicon) and Linux x86-64:
cargo install wings-compile wings-vm wings-lsp --version 0.0.3 --lockedOr clone the repository directly to build and run the workspace test suite from source:
git clone https://github.com/wsafight/wings.git
cd wings
cargo test --workspace --locked2. Single-Actor Build & Run
Run wings-compile check for static type and protocol verification, build to emit a
native AOT shared library and manifest (the output directory must not already exist), and wings-vm run --trusted to process a JSON Lines message stream:
# Static syntax, type, and protocol check
wings-compile check examples/counter.wings
# Build a single-actor native AOT artifact (output directory must not exist)
wings-compile build examples/counter.wings -o target/counter-aot
# Execute a JSON Lines message stream over stdin
wings-vm run --trusted target/counter-aot < examples/counter.messages.jsonl3. Multi-Actor Bundle & Serve
For applications combining multiple actors, shared immutable struct types, non-blocking .ask requests, send_after timers, and monitor crash recovery, bundle with build-app and launch a multi-worker server:
# Compile a multi-actor application bundle (supervision + send_after heartbeats)
wings-compile build-app examples/session-service.wings -o target/session-bundle
# Start a multi-worker HTTP JSON-RPC server (includes GET /healthz)
wings-vm serve --trusted target/session-bundle --workers 2 --http 127.0.0.1:8080
# Or start a TCP JSON Lines server
wings-vm serve --trusted target/session-bundle --workers 2 --tcp 127.0.0.1:9000Core Documentation Guide
Every chapter below is rendered directly from the canonical Markdown files in docs/: