Skip to content

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, and TryFrom);
  • 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.

  1. Choose whether witforge fits.
  2. Follow the quickstart.
  3. Learn the contract layout and supported WIT.
  4. Configure generation and wire a Rust crate.
  5. Inspect real generated output.
  6. Add CI checks.
  7. Review contract evolution and release migrations.
  8. Look up flags and keys in the CLI and configuration reference.

Current release: 0.12.0. Rust MSRV: 1.88. The 1.0 release remains gated on successful independent-consumer validation.