Skip to content

Phase 1 / D7: multi-module codegen at verifier parity #128

Description

@hyperpolymath

Deliverable 7 of #49. Producer-side multi-module emission matching the verifier's existing multi-module coverage.

Scope

  • Emit shared-schema regions across modules + the typedwasm.region-imports carrier.
    • Note: that carrier is proposal 0003 [draft] (docs/proposals/0003-region-imports-carrier.adoc), currently gated on exactly this producer-side multi-module emission. Landing D7 is its unblock; if implementation surfaces a wire gap, file a proposal-0003 amendment rather than improvising.
  • Field-IDs must be shared-schema-stable across modules — an importer's field_id numbering must match the exporter's (per the coordination note in docs/developer/handoff-typed-access-sites-codegen.adoc). A per-module counter will fail the cross-module case.

Acceptance

  • examples/02-multi-module.twasm round-trips: tw build.wasm accepted by verify_cross_module.
  • A cross-module fixture lands in crates/typed-wasm-verify/tests/fixtures/c5_real/.

Dependencies

  • Blocked by the single-module codegen path (F / D1).

Cross-refs

Deliverable: Phase 1 / deliverable 7 (docs/PRODUCTION-PATH.adoc §Phase 1). Part of #49.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions