Skip to content

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

Open
pgherveou wants to merge 3 commits into
mainfrom
rust-core/01-truapi-testing-api
Open

feat(truapi): add testing API and versioned wiring#248
pgherveou wants to merge 3 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

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

pub use signing::Signing;
pub use statement_store::StatementStore;
pub use system::System;
#[cfg(debug_assertions)]

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.

So from what I understand, codegen for the TS client will always have these testing.* entry points even if the host builds on --release and doesn't support it right (since nothing is getting generated at runtime).

Seems fine if the truapi always exposes those testing*. calls but just something I wanted to note and think about.

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

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