Skip to content

Choosing witforge

witforge fits when:

  • hand-written WIT is the contract source of truth;
  • the callable contract is pure, synchronous, and value-oriented;
  • native Rust and polyglot or out-of-process implementations share the same semantic values;
  • protobuf numbers must remain stable across versions;
  • generated output is committed and checked for drift;
  • contract changes need machine-readable compatibility review;
  • adjacent contract versions need generated conversion adapters.

Typical examples are analyzers, validators, bounded policy calls, transformation requests, and plugin operations that take and return finite values.

Use wit-bindgen and a Component Model runtime when you only need guest/host bindings and Canonical ABI support.

Use protobuf tooling directly when protobuf is already authoritative and WIT is only a generated view.

Use an application runtime or protocol framework for:

  • component loading and linking;
  • process framing and multiplexing;
  • callbacks, cancellation, and asynchronous streams;
  • capability grants, resource limits, retries, and failure policy;
  • discovery, signing, packaging, and distribution.

witforge does not own those concerns.

Supported: records, variants, enums, flags, aliases, char, lists, fixed-length lists (list<T, N>, 1 <= N <= 65536), maps (map<K, V> with bool, integer, char, or string keys), options, results, named interface functions, worlds, and standard deps/ package references.

Refused: resources and handles, tuples, futures, streams, async functions, accessors, world-defined functions/types, unsupported map key types, and out-of-range fixed-length lists.

Run witforge check against the actual package for the authoritative answer.