feat(core): port Rust core runtime, codegen, and WASM host#210
Closed
pgherveou wants to merge 1 commit into
Closed
feat(core): port Rust core runtime, codegen, and WASM host#210pgherveou wants to merge 1 commit into
pgherveou wants to merge 1 commit into
Conversation
This was referenced Jun 11, 2026
Introduce the canonical Rust protocol crates (truapi, truapi-platform, truapi-server) plus the rustdoc-JSON codegen (truapi-codegen) that emits the Rust dispatcher/wire table and the @parity/truapi TypeScript client. truapi-server ships as a WASM host runtime consumed by @parity/truapi-host-wasm, and the playground talks to it over a MessagePort handshake. This is the smallest set that runs the dotli playground diagnosis e2e: the dotli submodule, Makefile (wasm/dev/e2e/codegen targets), codegen script, deny.toml licence exceptions, ci.yml dotli-e2e job, and the host-packages.yml WASM bundle checks are included.
2135473 to
94a612e
Compare
pgherveou
commented
Jun 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports the canonical Rust protocol implementation into the repo. The
truapi,truapi-platform, andtruapi-servercrates define the protocol types and host syscall traits, andtruapi-codegenturns the crate's rustdoc JSON into both the Rust dispatcher/wire table and the@parity/truapiTypeScript client.truapi-serverships as a WASM host runtime that@parity/truapi-host-wasmloads, and the playground reaches it through aMessagePorthandshake.This is the smallest slice that runs the dotli playground diagnosis e2e end to end: the dotli submodule, the
make wasm/dev/e2e-dotli/codegentargets, the codegen script, thedeny.tomllicence exceptions (smoldot, uniffi), theci.ymldotli-e2e job, and thehost-packages.ymlWASM bundle checks ride along. The extended-theme-api RFC lives here too, paired with itstruapiinterface changes (the repo's check-rfc gate requires RFC docs to land alongside their interface changes).First of a 3-PR stack carved from #104 (base:
main). Mobile bindings and docs stack on top.Authored with assistance from Claude Code.