Skip to content

feat(host-wasm): add @parity/truapi-host-wasm runtime#252

Open
pgherveou wants to merge 31 commits into
rust-core/04-wasm-bridge-codegenfrom
rust-core/05-host-wasm
Open

feat(host-wasm): add @parity/truapi-host-wasm runtime#252
pgherveou wants to merge 31 commits into
rust-core/04-wasm-bridge-codegenfrom
rust-core/05-host-wasm

Conversation

@pgherveou

@pgherveou pgherveou commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Summary

Updates @parity/truapi-host-wasm to consume the generated namespaced host callback surface.

The package now re-exports the generated callback API, accepts RequiredHostCallbacks, keeps flat callback support for test/back-compat helpers, and adapts auth/preimage/chain tests to the generated encoded bridge payloads.

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. This PR.
  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.

Active child #253 is kept tree-equivalent with umbrella #104.

Validation

  • cd js/packages/truapi-host-wasm && npm run build && npm test
  • Also rechecked after merging the updated lower codegen/runtime layers.

@socket-security

socket-security Bot commented Jun 30, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​parity/​truapi-host@​0.1.0N/AN/AN/AN/AN/A

View full report

@pgherveou pgherveou force-pushed the rust-core/04-codegen branch from 1c8334a to 691b822 Compare June 30, 2026 22:10
@pgherveou pgherveou force-pushed the rust-core/05-host-wasm branch from b137a87 to 23b8487 Compare June 30, 2026 22:10
@pgherveou pgherveou force-pushed the rust-core/04-codegen branch from 691b822 to a9e4a7a Compare June 30, 2026 22:12
@pgherveou pgherveou force-pushed the rust-core/05-host-wasm branch from 23b8487 to 1a3f7b8 Compare June 30, 2026 22:12
@pgherveou pgherveou force-pushed the rust-core/04-codegen branch 2 times, most recently from fe9d731 to 7e60390 Compare June 30, 2026 22:23
@pgherveou pgherveou force-pushed the rust-core/05-host-wasm branch 2 times, most recently from 4d25aec to ee1a104 Compare July 1, 2026 06:39
@pgherveou pgherveou force-pushed the rust-core/04-codegen branch 2 times, most recently from 2dc7094 to e31bd39 Compare July 1, 2026 06:43
@pgherveou pgherveou force-pushed the rust-core/05-host-wasm branch 2 times, most recently from 36356d0 to f71e58a Compare July 1, 2026 08:14
@pgherveou pgherveou force-pushed the rust-core/04-codegen branch from e31bd39 to 2cc45b1 Compare July 1, 2026 08:14
Base automatically changed from rust-core/04-codegen to rust-core/03-server-runtime July 1, 2026 08:14
@pgherveou pgherveou force-pushed the rust-core/03-server-runtime branch from 71a3f71 to 195a6b7 Compare July 1, 2026 09:26
@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/05-host-wasm branch from 79ffd50 to e895f87 Compare July 1, 2026 20:38
@pgherveou pgherveou force-pushed the rust-core/03-server-runtime branch 2 times, most recently from 538cb2e to 3e7a360 Compare July 1, 2026 21:23
@pgherveou pgherveou force-pushed the rust-core/05-host-wasm branch from e895f87 to 3502aca Compare July 1, 2026 21:23
@pgherveou pgherveou changed the base branch from rust-core/03-server-runtime to rust-core/04-wasm-bridge-codegen July 6, 2026 06:16
case "notifySessionStoreChanged":
runtime?.notifySessionStoreChanged();
break;
case "getPermissionAuthorizationStatus":

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.

Missing test

);
break;
case "getPermissionAuthorizationStatuses":
void handleGetPermissionAuthorizationStatuses(

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.

Missing test

);
break;
case "setPermissionAuthorizationStatus":
void handleSetPermissionAuthorizationStatus(

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.

Missing test

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.

2 participants