Skip to content

Releases

witforge 0.7.0

Choose a tag to compare

@github-actions github-actions released this 23 Nov 21:37

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 compiling prost/protox
      round trip, verified by wiring_guide_crate_generates_compiles_and_roundtrips, prebuilt
      archive checksum/attestation verification, and --lock/--released/released options),
      docs/guide/reference.md (complete CLI & witforge.toml
      reference verified against Cli::command()), and
      docs/guide/migration.md (per-release generated-output migration
      index linking to CHANGELOG.md sections).
    • Added CONTRIBUTING.md, GitHub issue forms (.github/ISSUE_TEMPLATE/),
      and .github/PULL_REQUEST_TEMPLATE.md; enabled jekyll-relative-links in docs/_config.yml,
      converted all internal docs/ links to .md, and added dual GitHub/Pages link and anchor
      verification (documentation_links_and_anchors_resolve_on_github_and_pages).
  • 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-aware structured-contract target exercising one-letter
      and upper-case names, multiple .wit files, and deps/ packages.
    • Updated wit-package and structured-contract to 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_invariants to the stable suite.
  • 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 from Cargo.toml in the Action's own tree instead of silently floating to latest
      (latest is installed only when version: latest is passed explicitly; missing assets fail
      naming version).
    • Added against, format (human/json/sarif), sarif-file, and binary inputs plus
      failed-command and sarif-file outputs, 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.
  • Atomic releases, SLSA build provenance, Linux arm64, archive licenses, and crate metadata
    (W10-087, W10-090):
    • Reordered .github/workflows/release.yml so platform binaries (including linux/arm64 /
      aarch64-unknown-linux-gnu) are built, attested via actions/attest-build-provenance, and
      smoke-tested from workflow artifacts before publishing crates (using --no-verify after
      verifying .crate SHA-256 digests against the unprivileged verify job) or creating a
      draft-first GitHub release without --clobber. The Action verifies build provenance with
      gh attestation verify on releases 0.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-action v1.0.6 commit pin used for trusted OIDC
      publishing.
    • Included LICENSE-APACHE, LICENSE-MIT, and README.md in every release archive, added
      homepage/documentation/[package.metadata.binstall] crate metadata, excluded tests/
      from the published witforge library crate, enabled GitHub Private Vulnerability Reporting,
      documented the threat model and download verification in SECURITY.md, and ignored local-only
      paths (/.private/, /.github-account) in .gitignore.
  • CI concurrency, weekly schedule, pinned lint toolchain, and benchmark ceilings (W10-088):
    • Grouped main CI runs per commit so no commit is cancelled while pending, pinned the gating
      Rust lint toolchain (1.100.0) with a weekly scheduled floating-stable + fuzz-smoke +
      security run, removed retired self-hosted runner leftovers and unused ci/deny.toml
      licenses, made every ci/*.sh script default scratch to ${TMPDIR:-$HOME/.tmp}, cached
      historical buf baseline binaries in manual CI only, and tightened tests/bench.rs release
      ceilings to ~10x hosted-runner baselines.
  • Protobuf binary decode-compatibility view in diff (W10-097):
    • Added a directional decode compatibility view (new_reads_old and old_reads_new) to
      witforge diff, modelling two processes speaking the same major's protobuf schema over binary
      encoding under the documented decode profile (distinguishing option<T> and non-byte list<T>
      from required fields and optional bytes list<u8>, closed enum/variant cases, flags,
      functions, and parameters).
    • Extended diff --check=<views> to accept decode (for example --check=decode or
      --check=wire,decode); bare --check continues to gate on wire,source,api without decode
      by default.
    • Added additive JSON fields (decode_breaking, new_reads_old, old_reads_new per change and
      decode_breaking, new_reads_old_breaking, old_reads_new_breaking in summary) and
      additive library types/functions (diff::DecodeVerdict, diff::DecodeSummary,
      diff::FullDiff, diff::compare_full).
  • 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 rust no longer refuses
      breaking changes: plain types for every live version are always written, convert.rs generates
      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 of convert.rs. Intra-major incompatible evolutions remain refused (WF2002).
    • witforge diff across a major boundary now permits changed, added, removed, or upgraded
      dependencies and reports the exact same per-direction omission set as convert.rs (human
      notes, --json conversion_omissions, WF3004 notes in --format json|sarif, plus additive
      library APIs diff::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 shared witforge_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> retired entries in wit/released (with ReleasedManifest::is_retired,
      retired_directories, live_directories, and validate_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 .proto and glue once all its versions are
      retired). witforge freeze accepts the one-way live -> retired transition and refuses
      un-retiring, removals, or edits to retired directories.
  • Built-in release-freeze verification (witforge freeze, W10-083):
    • Added witforge freeze [<WIT_ROOT>] [--config PATH] [--project NAME] [--base REV] and the
      witforge::freeze library module enforcing the Git-history release-freeze rule across
      platforms (including shallow-clone refusal with exit 2 / WF9004, core.autocrlf=true,
      full-history rename tracking stopping at copies, symlink/untracked/case-sensitive wire.lock
      hygiene, multi-project config runs, and full violation collection under WF1109).
    • Reduced ci/check-release-freeze.sh to a thin wrapper over witforge freeze and added the
      freeze input to the GitHub Action.
  • High-level contract workflow commands and upward witforge.toml discovery (W10-084):
    • Added witforge generate, witforge new-version [--major], witforge release <WIT_DIR>,
      whole-WIT-root and config-driven witforge check, and upward witforge.toml discovery
      (stopping at .git or filesystem root, with --no-config opt-out and safe preservation of
      self-contained explicit CLI invocations).
  • Build identity, --quiet, per-view diff --check, shell completions, and explain (W10-085):
    • witforge --version now includes the short Git commit (and -dirty when 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 / -q to suppress human notes and summaries without suppressing errors,
      changing exit codes, or modifying JSON/SARIF output.
    • Extended witforge diff --check to accept --check=<views> (wire, source, api,
      comma-separated; defaults to all three) and mapped the GitHub Action's diff-check input onto
      it.
    • Added `witforge completions <ba...
Read more

witforge 0.6.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 22:45

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 --check fails 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. Any witforge.toml whose out paths coincide or nest, or
    whose output root resolves to an ancestor of or overlaps the WIT root or any released directory,
    now exits 2 before writing.
  • Generated Rust formatting, fallback doc comments, unit signatures, and type-only interfaces:
    Generated Rust now matches default rustfmt (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-default rustfmt.toml settings, 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, .proto interface 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 .wit files 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 api and trait Api), and --serde JSON keys follow those plain Rust
    spellings. .proto and 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 --serde keys after regenerating.
  • ConversionError now carries from and to fields: In generated convert.rs,
    ConversionError::MissingMember and ConversionError::UnknownCase gain from: &'static str
    and to: &'static str. How to tell: search consumer crates that include convert.rs for
    ConversionError::MissingMember or ConversionError::UnknownCase; destructuring patterns
    without .. fail to compile until from, to, or .. is added.
  • JSON Schema result forms and f32 bounds: Every result form (result<T>,
    result<_, E>, bare result, result<T, E>) now emits a closed oneOf of {"ok": ...} and
    {"err": ...} with {"type":"null"} for payload-less sides, and f32 adds finite min/max
    bounds. How to tell: search .wit files for result<_,, single-argument result<T> (no
    comma), bare result, or f32, or inspect the diff of regenerated *.schema.json files.
  • Byte-list aliases (list<byte> -> bytes / Vec<u8>): Any list<T> whose resolved
    element type is u8 (including local, use ... as ..., and dependency aliases) now projects
    to protobuf bytes, Rust Vec<u8>, and JSON Schema 8-bit integer arrays instead of repeated uint32 / Vec<Byte>. How to tell: regenerate and check for .proto fields changing from
    repeated uint32 to bytes or Rust fields changing from Vec<Alias> to Vec<u8>. Mixed
    deployments agree on values < 128 and disagree on values >= 128.
  • Protobuf cross-package references, unused imports, and structural wrappers: Cross-package
    .proto references gain a leading dot (.namespace.name.v<major>.<Type>), unused dependency
    imports are dropped, unreferenced named list/option/result types now emit their wrapper
    messages, and dependency structural wrappers are owned by the dependency package that writes the
    shape. How to tell: regenerate .proto and glue for any contract with deps/ or named
    list/option/result definitions; binary descriptors are unchanged for existing fields.
  • Multi-file WIT deterministic declaration order: Multi-file version directories and deps/
    packages now load *.wit files in ascending file-name byte order. How to tell: only
    contracts with more than one .wit file in a version directory or deps/ package are affected;
    wire numbers and wire.lock entries are unchanged, and generated files may reorder declarations
    once on regeneration.
  • Glue requires absolute --plain-root and --proto-root: Relative paths (self::...,
    super::...) and unprefixed generated module names (v<major>, witforge_deps, etc.) now
    exit 2. How to tell: check --plain-root / --proto-root flags and witforge.toml
    plain_root / proto_root keys; rewrite relative paths to crate::... or ::crate_name::....
  • GitHub Action diff-old, diff-new, diff-check, and github-token inputs: Releases
    through v0.5.0 ignored these inputs. How to tell: grep workflow files for diff-old: or
    diff-new: on asamarts/witforge@; moving to v0.6.0 starts executing
    witforge diff ... --check (which fails on source-breaking changes such as added record
    fields) unless you set diff-check: "false".
  • Unreleased lockfiles require a complete # witforge order v1 section: Every mode (check,
    check --first, check --against, and all generators) refuses an unreleased wire.lock
    missing or omitting entries from # witforge order v1 with exit 1. 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 v1 without changing wire numbers.
  • Stricter check, lock, and generator refusals (including frozen released directories):
    witforge check now 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/--against predecessor skips,
    symlinks inside listed wit/released directories (exit 2), and three conditions that can make
    an already-released, frozen directory unusable because it cannot be edited in place:
    1. a lockfile parent mixing live and reserved member kinds (e.g. a released type that changed
      kind, W10-045);
    2. a dependency graph pinning two versions of one namespace:name or reusing the root package
      name (W10-047);
    3. a lockfile violating the documented grammar (W10-053, see docs/design/lockfile.md
      section 17).
      How to tell: run witforge check and your configured generators with --check against every
      version directory. No repository fixture, example, or alint contract hits these frozen-directory
      refusals; any affected contract recovers by cutting a new version with a fresh type name or
      single pinned dependency version.

Added

  • Added the cargo-fuzz harness (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 --against restores 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 --against the reintroduction message points at
    the baseline option.
  • proto reserves 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 with UNSPECIFIED and its reserved method ids and names, because the per-major
    proto file is shared by every minor of the major.
  • diff reports a non-defaulted required record field addition as a conversion-generation
    blocke...
Read more

witforge 0.5.0

Choose a tag to compare

@github-actions github-actions released this 17 Nov 07:12
c5007a0

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

  • diff reports 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.
  • diff now 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 --first creates the first version's wire.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 compiled prost first.

witforge 0.4.4

Choose a tag to compare

@github-actions github-actions released this 12 Nov 02:58

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 --check against both examples, and the public guide shows exact
    generated-output excerpts with links to the full files.
  • Generated Rust version adapters now carry # Errors documentation on fallible public
    conversion functions.

Fixed

  • Generated glue copies Copy primitives 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 the APLAN041 plan-gate failure.

witforge 0.4.3

Choose a tag to compare

@github-actions github-actions released this 11 Nov 05:28

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

Choose a tag to compare

@github-actions github-actions released this 11 Nov 04:22

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 diff now 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, require ci ok for the exact tag commit, and deny yanked
    dependencies.

witforge 0.4.1

Choose a tag to compare

@github-actions github-actions released this 06 Nov 22:01

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, so list<foreign list>,
    list<foreign option>, and option<foreign option> round-trip.
  • Foreign wrapper names are PascalCase without underscores, avoiding a
    mismatch between the .proto message 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

Choose a tag to compare

@github-actions github-actions released this 06 Nov 21:06

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/deps package dependencies with package-qualified type and interface
    references. Dependency Rust modules are emitted in witforge_deps.rs, protobuf schemas in one
    sanitized <namespace>.<package>.v<major>.proto file 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.rs module (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 jsonschema 0.60, and the CLI configuration
    dependency moved to toml 1.1; both are internal dependency updates with no runtime API
    change.

witforge 0.3.0

Choose a tag to compare

@github-actions github-actions released this 06 Nov 00:21

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. --json emits the full report and
    --check exits non-zero on a breaking change (W8-001).
  • --format json|sarif on check, 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 run check, 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 audit and cargo deny policy checks, and a public
    SECURITY.md reporting 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

Choose a tag to compare

@github-actions github-actions released this 04 Nov 23:51

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 rust now also emits convert.rs for 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 defaults option<T> and list<T> additions, new-to-old reports a removed required
    member as ConversionError::MissingMember, added or removed variant and enum cases report
    UnknownCase, flags default to false, 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 --against and lock --against refuse 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 successful lock (W6-001).
  • witforge schema emits one Draft 7 JSON Schema document per contract version. Every named
    type is under definitions; records, flags, variants, results, enums, aliases, and nested
    list/option/result shapes are mapped, with all record fields required and closed enums
    (W6-008). The emitter writes JSON directly and adds no runtime dependency.
  • witforge.toml projects can supply a WIT root and output paths for rust, proto, schema,
    and glue. --config selects the file and --project selects 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/Default derives. 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).
  • rust emits an additive shared worlds.rs when a contract has worlds. Each world exposes its
    name plus explicit imported and exported interface lists, with one WORLDS constant 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.md and runnable examples/single and examples/evolved trees covering
    all emitters, configuration, lock continuity, release freezing, and generated conversions
    (W7-002).