Repository navigation
Releases
witforge 0.7.0
0.7.0 is the final planned pre-1.0 Rust-library source break. Library consumers must apply the
W10-094, W10-095, and W10-096 migration notes below before moving their dependency.
Generated output changes for every contract that uses @since, @unstable, or @deprecated:
regenerate and commit plain Rust, protobuf, JSON Schema, glue, and shared metadata together.
Contracts without stability annotations do not gain those comments or deprecation attributes,
but should still run every generator with --check. Invalid annotation versions newly fail
validation as documented under W10-094. Wire numbers and lockfile identity do not change.
Added
- Adopter & contributor documentation and dual GitHub/Pages link checking (
W10-091,W10-092):- Added
docs/guide/wiring.md(empty crate to compilingprost/protox
round trip, verified bywiring_guide_crate_generates_compiles_and_roundtrips, prebuilt
archive checksum/attestation verification, and--lock/--released/releasedoptions),
docs/guide/reference.md(complete CLI &witforge.toml
reference verified againstCli::command()), and
docs/guide/migration.md(per-release generated-output migration
index linking toCHANGELOG.mdsections). - Added
CONTRIBUTING.md, GitHub issue forms (.github/ISSUE_TEMPLATE/),
and.github/PULL_REQUEST_TEMPLATE.md; enabledjekyll-relative-linksindocs/_config.yml,
converted all internaldocs/links to.md, and added dual GitHub/Pages link and anchor
verification (documentation_links_and_anchors_resolve_on_github_and_pages).
- Added
- Structure-aware fuzz target, tracked seed corpus, and asserted invariants (
W10-089):- Added a tracked fixture-derived seed corpus under
fuzz/seeds/, a WIT keyword dictionary
(fuzz/wit.dict), and the structure-awarestructured-contracttarget exercising one-letter
and upper-case names, multiple.witfiles, anddeps/packages. - Updated
wit-packageandstructured-contractto assert full compiler invariants (generation
success across all four emitters, determinism, canonical/idempotent lockfiles, empty
self-diff, and two-version conversion) and added the matching fixed-seed property test
structured_contracts_satisfy_fuzz_invariantsto the stable suite.
- Added a tracked fixture-derived seed corpus under
- GitHub Action ref-pinned versions,
against/format/sarif-file/binary, annotations, and
failed-command(W10-086):- Non-tag refs (commit SHAs, branches, floating tags, and local
./) now install the workspace
version fromCargo.tomlin the Action's own tree instead of silently floating tolatest
(latestis installed only whenversion: latestis passed explicitly; missing assets fail
namingversion). - Added
against,format(human/json/sarif),sarif-file, andbinaryinputs plus
failed-commandandsarif-fileoutputs, pre-download input validation, bounded retries on
transient network/5xx errors (never retrying 4xx or checksum mismatches), archive/checksum
scratch cleanup, and GitHub workflow annotations (::error file=...,line=...,col=...::...)
on failing checks.
- Non-tag refs (commit SHAs, branches, floating tags, and local
- Atomic releases, SLSA build provenance, Linux arm64, archive licenses, and crate metadata
(W10-087,W10-090):- Reordered
.github/workflows/release.ymlso platform binaries (includinglinux/arm64/
aarch64-unknown-linux-gnu) are built, attested viaactions/attest-build-provenance, and
smoke-tested from workflow artifacts before publishing crates (using--no-verifyafter
verifying.crateSHA-256 digests against the unprivilegedverifyjob) or creating a
draft-first GitHub release without--clobber. The Action verifies build provenance with
gh attestation verifyon releases0.7.0+before extracting. - Normalized Windows runner scratch paths before GNU tar extraction so the required Windows
pre-publish archive smoke runs before trusted publication. - Corrected the immutable
crates-io-auth-actionv1.0.6 commit pin used for trusted OIDC
publishing. - Included
LICENSE-APACHE,LICENSE-MIT, andREADME.mdin every release archive, added
homepage/documentation/[package.metadata.binstall]crate metadata, excludedtests/
from the publishedwitforgelibrary crate, enabled GitHub Private Vulnerability Reporting,
documented the threat model and download verification inSECURITY.md, and ignored local-only
paths (/.private/,/.github-account) in.gitignore.
- Reordered
- CI concurrency, weekly schedule, pinned lint toolchain, and benchmark ceilings (
W10-088):- Grouped
mainCI runs per commit so no commit is cancelled while pending, pinned the gating
Rust lint toolchain (1.100.0) with a weekly scheduledfloating-stable+fuzz-smoke+
securityrun, removed retired self-hosted runner leftovers and unusedci/deny.toml
licenses, made everyci/*.shscript default scratch to${TMPDIR:-$HOME/.tmp}, cached
historicalbufbaseline binaries in manual CI only, and tightenedtests/bench.rsrelease
ceilings to ~10x hosted-runner baselines.
- Grouped
- Protobuf binary decode-compatibility view in
diff(W10-097):- Added a directional decode compatibility view (
new_reads_oldandold_reads_new) to
witforge diff, modelling two processes speaking the same major's protobuf schema over binary
encoding under the documented decode profile (distinguishingoption<T>and non-bytelist<T>
from required fields andoptional byteslist<u8>, closed enum/variant cases, flags,
functions, and parameters). - Extended
diff --check=<views>to acceptdecode(for example--check=decodeor
--check=wire,decode); bare--checkcontinues to gate onwire,source,apiwithoutdecode
by default. - Added additive JSON fields (
decode_breaking,new_reads_old,old_reads_newper change and
decode_breaking,new_reads_old_breaking,old_reads_new_breakinginsummary) and
additive library types/functions (diff::DecodeVerdict,diff::DecodeSummary,
diff::FullDiff,diff::compare_full).
- Added a directional decode compatibility view (
- Major-version boundaries, partial cross-major adapters, per-major dependencies, and version retirement (
W10-093):- Across a major-version boundary (
old.major != new.major),witforge rustno longer refuses
breaking changes: plain types for every live version are always written,convert.rsgenerates
adapters for every type that still converts, and non-convertible types (and types containing
them transitively) are omitted per direction with a deterministic sorted comment block at the
top ofconvert.rs. Intra-major incompatible evolutions remain refused (WF2002). witforge diffacross a major boundary now permits changed, added, removed, or upgraded
dependencies and reports the exact same per-direction omission set asconvert.rs(human
notes,--jsonconversion_omissions,WF3004notes in--format json|sarif, plus additive
library APIsdiff::ConversionOmission,diff::compare_omissions, and
diff::compare_with_omissions).- Pinned dependency-graph identity is now enforced per major rather than across majors: identical
dependencies stay at the sharedwitforge_deps::<ns>_<pkg>/<ns>.<pkg>.v<dep_major>paths,
while dependencies that change or upgrade across live majors are scoped per root major across
Rust, protobuf, JSON Schema, and glue. - Added
<name> retiredentries inwit/released(withReleasedManifest::is_retired,
retired_directories,live_directories, andvalidate_retirement_order): retiring a
contiguous oldest prefix of versions keeps their directories frozen on disk while removing them
from generated output (and drops a major's.protoand glue once all its versions are
retired).witforge freezeaccepts the one-waylive -> retiredtransition and refuses
un-retiring, removals, or edits to retired directories.
- Across a major-version boundary (
- Built-in release-freeze verification (
witforge freeze,W10-083):- Added
witforge freeze [<WIT_ROOT>] [--config PATH] [--project NAME] [--base REV]and the
witforge::freezelibrary module enforcing the Git-history release-freeze rule across
platforms (including shallow-clone refusal with exit2/WF9004,core.autocrlf=true,
full-history rename tracking stopping at copies, symlink/untracked/case-sensitivewire.lock
hygiene, multi-project config runs, and full violation collection underWF1109). - Reduced
ci/check-release-freeze.shto a thin wrapper overwitforge freezeand added the
freezeinput to the GitHub Action.
- Added
- High-level contract workflow commands and upward
witforge.tomldiscovery (W10-084):- Added
witforge generate,witforge new-version [--major],witforge release <WIT_DIR>,
whole-WIT-root and config-drivenwitforge check, and upwardwitforge.tomldiscovery
(stopping at.gitor filesystem root, with--no-configopt-out and safe preservation of
self-contained explicit CLI invocations).
- Added
- Build identity,
--quiet, per-viewdiff --check, shell completions, andexplain(W10-085):witforge --versionnow includes the short Git commit (and-dirtywhen tracked files have
local edits) on development builds, printing the bare version on exact clean release tags and
builds without Git metadata (with no embedded timestamps).- Added global
--quiet/-qto suppress human notes and summaries without suppressing errors,
changing exit codes, or modifying JSON/SARIF output. - Extended
witforge diff --checkto accept--check=<views>(wire,source,api,
comma-separated; defaults to all three) and mapped the GitHub Action'sdiff-checkinput onto
it. - Added `witforge completions <ba...
witforge 0.6.0
0.6.0 publishes the post-0.5.0 assurance work, the complete second-audit remediation for wire
identity, generated-code compilation, and tool safety, and the generated-output improvements for
clean Rust (rustfmt, default Clippy, -D missing_docs), hardened convert.rs, and complete
JSON Schema result shapes. The public witforge library API stays minor-compatible with 0.5.0
and MSRV remains Rust 1.88.
Generated output changes for every existing consumer (ownership headers, Rust formatting and
fallback doc comments, and, where applicable, upper-case Rust identifiers, doc-comment
normalization, JSON Schema result/f32, protobuf cross-package references/imports/wrappers,
convert.rs error fields, and multi-file ordering), and several previously accepted invalid or
ambiguous contracts and lockfiles are now refused. Read the migration section below before moving
a release pin and regenerating committed outputs.
Migration
Every change in 0.6.0 that alters generated output or refuses a previously accepted contract or
configuration, and how to tell whether your contract is affected:
- Contract-scoped ownership headers and distinct output roots (
rust,proto,schema,glue):
Every generated file now opens with// @generated by witforge (<gen>, <pkg>); do not edit.
(or{"$comment":"@generated by witforge (schema, <pkg>); do not edit.",for JSON Schema).
How to tell: every existing consumer's--checkfails on pre-0.6.0 output once until you
regenerate (generation automatically adopts files with the legacy shared header), and any
consumer script that asserts the exact first line (such as a hand-written ownership check) must
match the new per-generator header. Anywitforge.tomlwhoseoutpaths coincide or nest, or
whose output root resolves to an ancestor of or overlaps the WIT root or any released directory,
now exits2before writing. - Generated Rust formatting, fallback doc comments, unit signatures, and type-only interfaces:
Generated Rust now matches defaultrustfmt(Editions 2021 and 2024), passes default Clippy,
documents every public item (-D missing_docs), omits-> ()on unit-returning trait methods,
and stops emitting an empty trait for type-only interfaces (zero functions). How to tell:
every generated Rust file updates once on regeneration; compile your consumer crate after
regenerating to find any reference to an empty trait for a type-only interface (such as
types::Types) and remove it. If your crate uses non-defaultrustfmt.tomlsettings, keep
#[rustfmt::skip]on the module including the generated tree. - WIT documentation normalization, escaping, and placement: Package, world, and
dependency-interface docs are now emitted,.protointerface docs move above
enum <Interface>Method, control/line-separator characters are normalized, and code blocks,
<...>, and non-external[...]links are escaped for rustdoc. How to tell: regenerate and
inspect diffs on any contract whose.witfiles carry package, world, interface, or
Markdown-special doc comments. - Plain Rust identifiers for upper-case WIT words: Upper-case words now fold to idiomatic
Rust casing (URL->url,HTTP-api->http_api/HttpApi,HTTP->Http,
interface API->mod apiandtrait Api), and--serdeJSON keys follow those plain Rust
spellings..protoand JSON Schema names do not change. How to tell: search your.wit
files for ASCII uppercase letters ([A-Z]) in interface, type, field, case, flag, parameter, or
function names, and check for compiler errors or changed--serdekeys after regenerating. ConversionErrornow carriesfromandtofields: In generatedconvert.rs,
ConversionError::MissingMemberandConversionError::UnknownCasegainfrom: &'static str
andto: &'static str. How to tell: search consumer crates that includeconvert.rsfor
ConversionError::MissingMemberorConversionError::UnknownCase; destructuring patterns
without..fail to compile untilfrom,to, or..is added.- JSON Schema
resultforms andf32bounds: Everyresultform (result<T>,
result<_, E>, bareresult,result<T, E>) now emits a closedoneOfof{"ok": ...}and
{"err": ...}with{"type":"null"}for payload-less sides, andf32adds finite min/max
bounds. How to tell: search.witfiles forresult<_,, single-argumentresult<T>(no
comma), bareresult, orf32, or inspect the diff of regenerated*.schema.jsonfiles. - Byte-list aliases (
list<byte>->bytes/Vec<u8>): Anylist<T>whose resolved
element type isu8(including local,use ... as ..., and dependency aliases) now projects
to protobufbytes, RustVec<u8>, and JSON Schema 8-bit integer arrays instead ofrepeated uint32/Vec<Byte>. How to tell: regenerate and check for.protofields changing from
repeated uint32tobytesor Rust fields changing fromVec<Alias>toVec<u8>. Mixed
deployments agree on values< 128and disagree on values>= 128. - Protobuf cross-package references, unused imports, and structural wrappers: Cross-package
.protoreferences gain a leading dot (.namespace.name.v<major>.<Type>), unused dependency
imports are dropped, unreferenced namedlist/option/resulttypes now emit their wrapper
messages, and dependency structural wrappers are owned by the dependency package that writes the
shape. How to tell: regenerate.protoandgluefor any contract withdeps/or named
list/option/resultdefinitions; binary descriptors are unchanged for existing fields. - Multi-file WIT deterministic declaration order: Multi-file version directories and
deps/
packages now load*.witfiles in ascending file-name byte order. How to tell: only
contracts with more than one.witfile in a version directory ordeps/package are affected;
wire numbers andwire.lockentries are unchanged, and generated files may reorder declarations
once on regeneration. - Glue requires absolute
--plain-rootand--proto-root: Relative paths (self::...,
super::...) and unprefixed generated module names (v<major>,witforge_deps, etc.) now
exit2. How to tell: check--plain-root/--proto-rootflags andwitforge.toml
plain_root/proto_rootkeys; rewrite relative paths tocrate::...or::crate_name::.... - GitHub Action
diff-old,diff-new,diff-check, andgithub-tokeninputs: Releases
throughv0.5.0ignored these inputs. How to tell: grep workflow files fordiff-old:or
diff-new:onasamarts/witforge@; moving tov0.6.0starts executing
witforge diff ... --check(which fails on source-breaking changes such as added record
fields) unless you setdiff-check: "false". - Unreleased lockfiles require a complete
# witforge order v1section: Every mode (check,
check --first,check --against, and all generators) refuses an unreleasedwire.lock
missing or omitting entries from# witforge order v1with exit1. Released lockfiles written
before the section existed remain accepted and unmodified. How to tell: run
witforge check <version-dir>; if an unreleased draft predates order fingerprints, run
witforge lock <version-dir>once to append# witforge order v1without changing wire numbers. - Stricter
check,lock, and generator refusals (including frozen released directories):
witforge checknow refuses every generator-only collision (WF1003: type/trait,functions/
witforge_value/UNSPECIFIED/Empty,Request/Response, ASCII case, prost identifier
and accessor, dependency module/filename, and synthesized wrapper collisions), non-<major>.<minor>.0
deps/versions, named interface imports/exports, unsupported annotations, type expansion
beyond 32 levels / 32 alias links / 1024 bytes,--first/--againstpredecessor skips,
symlinks inside listedwit/releaseddirectories (exit2), and three conditions that can make
an already-released, frozen directory unusable because it cannot be edited in place:- a lockfile parent mixing live and reserved member kinds (e.g. a released type that changed
kind,W10-045); - a dependency graph pinning two versions of one
namespace:nameor reusing the root package
name (W10-047); - a lockfile violating the documented grammar (
W10-053, seedocs/design/lockfile.md
section 17).
How to tell: runwitforge checkand your configured generators with--checkagainst every
version directory. No repository fixture, example, oralintcontract hits these frozen-directory
refusals; any affected contract recovers by cutting a new version with a fresh type name or
single pinned dependency version.
- a lockfile parent mixing live and reserved member kinds (e.g. a released type that changed
Added
- Added the
cargo-fuzzharness (fuzz/) for WIT and lockfile inputs with CI, Dependabot, and
security-gate integration, expanded property-test and conversion/dependency/diagnostic coverage,
and added two-version diff and conversion benchmark budgets. lock --againstrestores a released member that the current draft removed when the source
adds it back with the baseline's number, kind, and type. The entry is un-reserved rather than
refused as a reintroduction; restoring a different kind or type, or a member already reserved
in the baseline, is still refused. Without--againstthe reintroduction message points at
the baseline option.protoreserves every old member of a type whose kind changed, not only entries of the
current kind, using the name the old projection gave it. A removed interface keeps its
method-id enum withUNSPECIFIEDand its reserved method ids and names, because the per-major
proto file is shared by every minor of the major.diffreports a non-defaulted required record field addition as a conversion-generation
blocke...
witforge 0.5.0
0.5.0 publishes the diff review improvements and the post-0.4.4 output and documentation
alignment. It adds an additive public diff API and new diff output; it does not change wire
numbers, protobuf output, JSON Schema output, or the generated Rust type and trait surface.
Generated convert.rs no longer ends with an extra blank line, so consumers that commit it
should regenerate when upgrading.
Added
diffreports a guaranteed new-to-old conversion failure as an informational note when a
shared record type's older version requires a member the newer version removed and that
member's type has no default. Human,--json,--format json, and SARIF output carry the
notes; they do not change compatibility counts or exit codes.
Fixed
- Corrected the Component Model guide: wit-bindgen type remapping works for compatible records
and variants, but not witforge enums, flags, or aggregates containing them with wit-bindgen
0.63.0. - Published the semantic decode rules non-Rust protobuf implementations must enforce, and
documented the distinct plain-Rust Serde, WIT-shaped JSON Schema, and proto3-JSON projections. diffnow refuses a stale lockfile on a direct version-directory endpoint instead of
comparing stale entries and potentially reporting a compatible result.- Removed the extra blank line at the end of generated
convert.rs, and added a whole-tree CI
whitespace check so committed output cannot preserve the same defect. - Kept wide documentation tables inside the mobile viewport with local horizontal scrolling.
- Added direct guide and API-documentation links to the repository surface, and clarified that
witforge lock --firstcreates the first version'swire.lock. - Replaced generated-glue test rlib scanning with isolated Cargo compile/run harnesses, so clean
hosted macOS jobs no longer depend on another test having compiledprostfirst.
witforge 0.4.4
0.4.4 publishes the generated-output, documentation, and CI hardening completed after 0.4.3. It
does not change the public library API, wire numbers, protobuf output, or JSON Schema output for a
valid contract accepted by 0.4.3. Generated Rust glue changes to avoid redundant clone and decode
work, and generated version adapters gain # Errors documentation; consumers that commit those
Rust outputs should regenerate when upgrading.
Changed
- The runnable examples now commit all generated Rust, protobuf, JSON Schema, and glue files.
CI runs every emitter with--checkagainst both examples, and the public guide shows exact
generated-output excerpts with links to the full files. - Generated Rust version adapters now carry
# Errorsdocumentation on fallible public
conversion functions.
Fixed
- Generated glue copies
Copyprimitives directly, clones borrowed owned values only when the
protobuf target must own them, and moves owned identity lists and options during decode instead
of rebuilding them through an iterator and a second allocation. - CI installs the same published aplan 0.6.0 build that generated the repository's
AGENTS.md
block, eliminating theAPLAN041plan-gate failure.
witforge 0.4.3
0.4.3 closes dependency-validation and release-proof gaps found in the post-0.4.2 audit. It
does not change the library API, wire numbers, or generated output for a valid contract accepted
by 0.4.2. A contract that exposes an unsupported dependency type is now refused instead of
producing incomplete generated output.
Fixed
- Dependency types reached transitively through root types, aliases, functions, and worlds are
checked before generation. Unsupported dependency definitions remain skippable only when the
root contract does not expose them. - Dependency-version diagnostics distinguish member-documentation changes from wire-shape
changes without allocating temporary order vectors.
Changed
- CI executes the pinned published Action on Linux x86_64, macOS arm64, macOS Intel, and Windows
x86_64. Tag releases execute the checked-out tag on the same four targets after uploading the
matching archives.
witforge 0.4.2
0.4.2 restores the published GitHub Action on GitHub's supported Node 24 runtime and hardens
dependency and release validation. It does not change the library API, wire numbers, or generated
output for a contract accepted by 0.4.1.
Fixed
- The JavaScript Action now declares Node 24, and CI executes the checked-out Action through
uses: ./so a stale runtime declaration cannot pass unit tests unnoticed. - A dependency interface imported or exported by a root world is validated as a complete API;
unsupported required items are refused instead of silently omitted. - Glue refuses dependency package names that normalize to one Rust module, and JSON Schema uses
the same contract-error classification as the other generators.
Changed
- Every generator and
diffnow use one detailed comparison requiring an identical pinned
dependency graph across versions in a WIT root. - The 1.0 and tag release gates deny public API breaks since 0.4.1, compare protobuf with
historical release generators, requireci okfor the exact tag commit, and deny yanked
dependencies.
witforge 0.4.1
0.4.1 is a patch for dependency glue edge cases found after 0.4.0. It does not
change the library API, wire numbers, or generated output for a contract that
does not use dependency types.
Fixed
- Nested dependency lists and options now use the same synthesized wrapper
names as the protobuf emitter and prost, solist<foreign list>,
list<foreign option>, andoption<foreign option>round-trip. - Foreign wrapper names are PascalCase without underscores, avoiding a
mismatch between the.protomessage name and prost's Rust name. - The 1.0 conformance matrix covers the dependency, foreign-world, dependency
conversion, and Serde fixtures.
witforge 0.4.0
0.4.0 is the dependency and Serde release. It adds standard deps/ dependency types,
generated dependency bindings, foreign world interfaces, dependency glue, and opt-in per-project
Serde derives. Generated output is unchanged for a contract 0.3.0 accepts unless the contract
uses deps/ or the project enables serde = true.
Added
- Standard
wit/depspackage dependencies with package-qualified type and interface
references. Dependency Rust modules are emitted inwitforge_deps.rs, protobuf schemas in one
sanitized<namespace>.<package>.v<major>.protofile per dependency, and only referenced
schemas are imported (W9-001,W9-004). - Dependency aliases, lists, options, results, enums, variants, flags, records, and
cross-dependency references are generated through their underlying wire shapes; a
dependency's unsupported unused items are skipped instead of breaking the root (W9-004). - Worlds may import and export interfaces from standard
deps/packages. World metadata keeps
the package-qualified interface name, protobuf imports the dependency schema, and glue
converts foreign values and dependency interface functions through a shared
witforge_deps.rsmodule (W9-005). - Opt-in Serde derives for generated records, enums, variants, and flags, selected by
[project.<name>.rust] serde = true,--serde, or overridden with--no-serde. The default
output is unchanged (W9-002).
Changed
- Glue for a contract with dependencies uses package-relative protobuf module paths
(<proto-root>::<namespace>::<package>::v<major>) so prost's cross-package references
resolve. Version adapters copy values whose types are the same pinned dependency type. - The JSON Schema test dependency moved to
jsonschema0.60, and the CLI configuration
dependency moved totoml1.1; both are internal dependency updates with no runtime API
change.
witforge 0.3.0
0.3.0 is the change-review and CI release. It adds witforge diff, structured JSON/SARIF
diagnostics, a GitHub Action with prebuilt Linux/macOS/Windows binaries, and the quality and
security gates needed before 1.0. Generated output is unchanged for every contract 0.2.0
accepts; the new CLI options and release artifacts are additive.
Added
witforge diff <old> <new>compares version directories or WIT roots and reports added,
removed, reordered, retyped, kind-changed, renumbered, and defaulted changes with independent
wire-identity, source, and generated-API verdicts.--jsonemits the full report and
--checkexits non-zero on a breaking change (W8-001).--format json|sarifoncheck,lock,diff, and every generator emits a versioned
diagnostic envelope or SARIF 2.1.0. Diagnostics carry stable codes, severities, paths, and
optional source positions; human output is unchanged by default (W8-002).- The repository publishes a GitHub Action and checksum-verified prebuilt archives for Linux
x86_64, macOS Intel and Apple silicon, and Windows x86_64. The Action installs the matching
release and can runcheck,diff, and configured generator checks (W8-003). - Property/fuzz tests for arbitrary lockfile text and emitter input models, a small/large
contract benchmark budget,cargo auditandcargo denypolicy checks, and a public
SECURITY.mdreporting policy (W8-004).
Changed
- CLI diagnostic collection and JSON/SARIF rendering are isolated from command dispatch; diff
member comparison uses a structured comparison specification. Human output and exit codes are
unchanged (W8-006).
witforge 0.2.0
0.2.0 is the first pre-1.0 release of the full compiler surface. It adds generated
version conversions, declaration-order fingerprints, JSON Schema, world metadata,
witforge.toml projects, and the CI plan gate. Generated output changes for contracts with
multiple versions or worlds, and the schema generator adds a new output; consumers should
regenerate and commit their generated trees when moving from 0.1.2.
Added
witforge rustnow also emitsconvert.rsfor a WIT root with two or more versions. It has
one module per adjacent version pair in each direction, with fallible type conversions:
old-to-new defaultsoption<T>andlist<T>additions, new-to-old reports a removed required
member asConversionError::MissingMember, added or removed variant and enum cases report
UnknownCase, flags default tofalse, aliases and named structural types convert
recursively, and retyped or kind-changed types are refused as contract errors. A required,
non-defaultable addition is refused so every accepted version pair has a generated adapter
(W6-007).- The lockfile gains an additive declaration-order section with per-parent FNV-1a 64
fingerprints.check --againstandlock --againstrefuse a reorder of members common to
two versions, while additions and removals are ignored; a v2 lockfile without the section is
accepted and migrates on the next successfullock(W6-001). witforge schemaemits one Draft 7 JSON Schema document per contract version. Every named
type is underdefinitions; records, flags, variants, results, enums, aliases, and nested
list/option/resultshapes are mapped, with all record fields required and closed enums
(W6-008). The emitter writes JSON directly and adds no runtime dependency.witforge.tomlprojects can supply a WIT root and output paths forrust,proto,schema,
andglue.--configselects the file and--projectselects a project when there is more
than one; CLI flags override every configured path, paths are relative to the configuration
file, and unknown keys are errors. The existing command-line-only form remains valid
(W6-005).- Measured owned versus borrowed Rust parameters on generated alint types. Concrete clones cost
0.58–0.69 ms for 1,000 analyzer rows and 7.1–9.0 ms for 10,000 rows, but borrowing would require
a lifetime-bearing generated surface and does not remove native-to-WIT mapping. Owned parameters
remain the 0.x/1.0 policy; borrowed inputs require a measured consumer path and a new contract
version (W6-002). - Evaluated conditional
Eq/Hash/Defaultderives. They are declined for 0.x/1.0 because
derives would change frozen generated APIs, floats block Eq/Hash transitively, and WIT has no
natural Default for enums, variants, or results; a consumer request plus a new contract version
would trigger an implementation task (W6-003). rustemits an additive sharedworlds.rswhen a contract has worlds. Each world exposes its
name plus explicit imported and exported interface lists, with oneWORLDSconstant per
version; per-version Rust modules remain frozen (W6-004).- Published the 1.0 public API policy, conformance matrix, and release criteria/deprecation
runways. The conformance suite exercises every supported WIT shape and all four emitters on
the comprehensive model fixture (W6-009). - Evaluated docs-only patch versions and a memberless-definition inventory. Both are declined for
0.x/1.0: draft docs changes are accepted without wire changes, memberless additions have no
wire entry, and released docs are caught by the release freeze (W6-006). - Added
docs/quickstart.mdand runnableexamples/singleandexamples/evolvedtrees covering
all emitters, configuration, lock continuity, release freezing, and generated conversions
(W7-002).