Skip to content

feat(truapi): add testing API and versioned wiring#248

Merged
pgherveou merged 4 commits into
mainfrom
rust-core/01-truapi-testing-api
Jul 2, 2026
Merged

feat(truapi): add testing API and versioned wiring#248
pgherveou merged 4 commits into
mainfrom
rust-core/01-truapi-testing-api

Conversation

@pgherveou

@pgherveou pgherveou commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Adds the canonical testing module (api/testing.rs) and its v01/v02/versioned wiring used by the Rust host runtime and generated clients.


Stack

Part of the Rust core runtime port (umbrella: #104), split into a reviewable stack. Merge bottom-up.

  1. feat(truapi): add testing API and versioned wiring #248 — truapi: testing API + versioned wiring 👈
  2. feat(truapi-platform): add host capability traits #249 — truapi-platform: host capability traits
  3. feat(truapi-codegen): emit Rust dispatcher, wire table, and host callbacks #254 — truapi-codegen: Rust dispatcher + wire table
  4. feat(truapi-server): add host logic primitives #255 — truapi-server: host logic primitives
  5. feat(truapi-server): add wire and chain infrastructure #256 — truapi-server: wire and chain infrastructure
  6. feat(truapi-server): add platform runtime and host bridge #250 — truapi-server: platform runtime and host bridge
  7. feat(host-wasm): add @parity/truapi-host-wasm runtime #252 — host-wasm: @parity/truapi-host-wasm runtime
  8. chore: docs, CI, tooling, and dotli integration for the Rust core #253 — docs, CI, tooling, dotli integration

Adds the canonical testing module (api/testing.rs) and its v01/v02/versioned
wiring used by the Rust host runtime and generated clients.
@socket-security

socket-security Bot commented Jul 1, 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
Updatednpm/​@​polkadot-api/​utils@​0.1.2 ⏵ 0.4.010010065 -196 -1100
Updatednpm/​@​polkadot-api/​substrate-bindings@​0.12.0 ⏵ 0.20.2100 +110073 +198100
Addednpm/​@​polkadot-api/​metadata-builders@​0.14.210010010098100
Updatednpm/​@​parity/​truapi@​0.3.1 ⏵ 0.0.0100 +21100100 +1100 +7100

View full report

Comment thread rust/crates/truapi/src/api.rs Outdated

@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.

Okay took some time and piecing together, but seems super reasonable. LGTM 🚀

@valentinfernandez1 valentinfernandez1 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 overall I just have two nit picks

  • First is the comment I left under Tarik's review
  • Naming the API and files testing can be misleading

@pgherveou pgherveou added this pull request to the merge queue Jul 2, 2026
Merged via the queue into main with commit bdcaa9f Jul 2, 2026
12 checks passed
@pgherveou pgherveou deleted the rust-core/01-truapi-testing-api branch July 2, 2026 08:22
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.

3 participants