witforge

WIT-first contract compiler for stable Rust, protobuf, JSON Schema, and versioned adapters

View the Project on GitHub asamarts/witforge

Guide

Guide Purpose
Choosing witforge High-fit projects, non-goals, and alternatives
Contract authoring Version directories, WIT subset, lockfiles, dependencies
Generation Rust, protobuf, schema, glue, config, and output ownership
Wiring & installation Installing prebuilt archives, crate layout, build.rs, --lock, and --released
Generated output Actual Rust, protobuf, JSON Schema, glue, and adapter output
Non-Rust implementations Protobuf code generation, WIT decode rules, and conformance tests
Evolution New versions, diff, adapters, and released contracts
CI Stale output, compatibility, release freeze, and the GitHub Action
CLI & config reference Complete CLI subcommands, flags, witforge.toml keys, and exit codes
Migration Per-release generated-output changes and upgrade links
Diagnostic codes Stable WFxxxx diagnostic catalogue, source positions, and SARIF rules
JSON projections Rust Serde versus WIT-shaped JSON Schema
Component Model boundary wit-bindgen and Wasmtime responsibilities
Examples Runnable single-version and evolved contracts

For a complete command sequence, use the quickstart.