Skip to content

chore: docs, CI, tooling, and dotli integration for the Rust core#253

Merged
pgherveou merged 166 commits into
mainfrom
rust-core/06-docs-ci-tooling
Jul 10, 2026
Merged

chore: docs, CI, tooling, and dotli integration for the Rust core#253
pgherveou merged 166 commits into
mainfrom
rust-core/06-docs-ci-tooling

Conversation

@pgherveou

@pgherveou pgherveou commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Summary

Carries the top integration layer: docs/CI/tooling, playground support, and dotli host integration for the Rust core stack.

This update points dotli at the namespaced callback implementation, keeps the playground preimage-submit e2e timeout aligned with SSO-backed operations, and records a dotli submodule commit that is pushed to the dotli worktree-issue-96-rust-core-port branch.

Stack

Part of the Rust core runtime port umbrella #104. Full port sequence:

  1. feat(truapi): add testing API and versioned wiring #248 - layer 1/9, merged historical: truapi testing API and versioned wiring.
  2. feat(truapi-platform): add host capability traits #249 - layer 2/9, merged historical: truapi-platform host capability traits.
  3. feat(truapi-codegen): emit Rust dispatcher, wire table, and host callbacks #254 - layer 3/9, merged historical: codegen Rust dispatcher, wire table, and host callbacks.
  4. feat(truapi-server): add host logic primitives #255 - layer 4/9, merged historical: server host logic primitives.
  5. feat(truapi-server): add wire and chain infrastructure #256 - layer 5/9, merged historical: server wire and chain infrastructure.
  6. feat(truapi-server): add platform runtime and host bridge #250 - active layer 1/4: server runtime, permissions, lifecycle, and permission-flow docs.
  7. feat(codegen): generate wasm bridge callbacks #265 - active layer 2/4: generic wasm bridge/codegen layer.
  8. feat(host-wasm): add @parity/truapi-host-wasm runtime #252 - active layer 3/4: @parity/truapi-host-wasm namespaced callback consumer.
  9. 👉 chore: docs, CI, tooling, and dotli integration for the Rust core #253 - active layer 4/4, top: docs, CI/tooling, playground, and dotli integration. This PR.

This top active child is kept tree-equivalent with umbrella #104.

Validation

  • make wasm
  • cd hosts/dotli && bun run typecheck && bun run test
  • Top branch tree verified equal to the umbrella branch tree locally before push.

Adds the canonical testing module (api/testing.rs) and its v01/v02/versioned
wiring used by the Rust host runtime and generated clients.
@pgherveou pgherveou force-pushed the rust-core/06-docs-ci-tooling branch from caf5db9 to b06cd62 Compare July 1, 2026 06:39
@pgherveou pgherveou force-pushed the rust-core/05-host-wasm branch 2 times, most recently from ee1a104 to 36356d0 Compare July 1, 2026 06:43
@pgherveou pgherveou force-pushed the rust-core/06-docs-ci-tooling branch from b06cd62 to 11ca719 Compare July 1, 2026 06:43
@pgherveou pgherveou force-pushed the rust-core/05-host-wasm branch from 36356d0 to f71e58a Compare July 1, 2026 08:14
@pgherveou pgherveou force-pushed the rust-core/06-docs-ci-tooling branch from 11ca719 to 693ed9b Compare July 1, 2026 08:14
@pgherveou pgherveou force-pushed the rust-core/06-docs-ci-tooling branch from 693ed9b to 2d5bd01 Compare July 1, 2026 08:44
@pgherveou pgherveou force-pushed the rust-core/05-host-wasm branch from f71e58a to 1aa779b Compare July 1, 2026 09:26
@pgherveou pgherveou force-pushed the rust-core/06-docs-ci-tooling branch from 2d5bd01 to 09cc038 Compare July 1, 2026 09:26
@pgherveou pgherveou force-pushed the rust-core/06-docs-ci-tooling branch from 09cc038 to 61a2deb Compare July 1, 2026 13:22
@replghost

Copy link
Copy Markdown
Contributor

Small suggestion from the runtime-boundary review: after ./scripts/codegen.sh in the Codegen job, consider adding:

- name: Check generated Rust output is committed
  run: git diff --exit-code -- rust/crates/truapi-server/src/generated

- name: Check Rust/TS wire table parity
  run: TRUAPI_REQUIRE_GENERATED_TS=1 cargo test -p truapi-server --test wire_table_ts_parity

That would make generated Rust dispatcher/wire-table drift and TS/Rust wire-table parity fail in CI directly, instead of relying on the broader workspace test behavior.

@pgherveou pgherveou force-pushed the rust-core/05-host-wasm branch from 79ffd50 to e895f87 Compare July 1, 2026 20:38
pgherveou added 9 commits July 9, 2026 18:47
Add wasm32 CI and make check coverage, avoid leaking signer callbacks, and reject compound codec callback boundaries during codegen.
Propagate host subscription stream failures to the WASM runtime, guard worker callback panics, and tighten iframe MessagePort origin handoff semantics. Also refresh the generated callback bridge and sandbox tests so the host runtime behavior is covered.
Make release retry behavior safe around existing tags and attestations, and redact signer-bot responses consistently in the dotli e2e helper.

@TarikGul TarikGul left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified the fixes I sent you, good to go 🚀

Base automatically changed from rust-core/05-host-wasm to main July 10, 2026 13:52
@pgherveou pgherveou requested review from a team July 10, 2026 13:52
@TarikGul

Copy link
Copy Markdown
Member

Just some conflicts that need to be resolved.

@filvecchiato filvecchiato left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

Mirror the codegen.sh post-processing path in the platform golden test so generated TypeScript is compared after Prettier and the WASM bridge is compared after rustfmt.
@pgherveou pgherveou removed the request for review from a team July 10, 2026 15:21
@pgherveou pgherveou added this pull request to the merge queue Jul 10, 2026
Merged via the queue into main with commit 2e91c00 Jul 10, 2026
13 checks passed
@pgherveou pgherveou deleted the rust-core/06-docs-ci-tooling branch July 10, 2026 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants