Overview
witforge compiles one hand-written WIT package into runtime-independent contract artifacts:
- plain Rust types and interface traits (with opt-in Serde,
no_std,Eq/Hash, andTryFrom); - zero-dependency plain types, interfaces, and version adapters for TypeScript, Python, Go, Java 21, and C# 12;
- protobuf messages with stable field and method numbers and opt-in Go/Java/C# file options;
- JSON Schema (Draft 7 default, opt-in Draft 2020-12);
- checked protobuf conversion glue for Rust, TypeScript, Python, Go, Java, and C#;
- deterministic Markdown contract reference docs (
witforge doc), versioned JSON contract IR (witforge inspect --json), and cross-language conformance fixtures (witforge conformance); - opt-in third-party emitter plugins (
witforge plugin), compatibility reports (diff,--git-base, project policies),deps sync, and deterministic CI checks.
It is a contract compiler, not a Wasm runtime, RPC framework, or replacement for wit-bindgen.
- Choose whether witforge fits.
- Follow the quickstart.
- Learn the contract layout and supported WIT.
- Configure generation and wire a Rust crate.
- Inspect real generated output.
- Add CI checks.
- Review contract evolution and release migrations.
- Look up flags and keys in the CLI and configuration reference.
Important boundaries
Section titled “Important boundaries”- JSON projections
- Non-Rust implementation rules
- wit-bindgen, Wasmtime, and witforge
- Runnable examples
Reference
Section titled “Reference”- Design overview
- Emitter specification
- Polyglot emitter specification
- Plugin specification
- Ecosystem distribution
- Lockfile specification
- Diagnostics
- GitHub Action
- Public API policy
Current release: 0.12.0. Rust MSRV: 1.88. The 1.0 release remains gated on successful independent-consumer validation.