Skip to content

feat(truapi-server): add wire and chain infrastructure#256

Merged
pgherveou merged 27 commits into
mainfrom
rust-core/04b-server-wire-chain
Jul 3, 2026
Merged

feat(truapi-server): add wire and chain infrastructure#256
pgherveou merged 27 commits into
mainfrom
rust-core/04b-server-wire-chain

Conversation

@pgherveou

@pgherveou pgherveou commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Adds the truapi-server wire/chain infrastructure: frame codec helpers, dispatcher registration, subscription plumbing, host JSON-RPC client, and chain runtime mechanics.


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

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

Local verification

  • cargo build --workspace --all-targets --all-features
  • cargo +nightly fmt --check
  • cargo +nightly clippy --workspace --all-targets --all-features -- -D warnings
  • cargo test --workspace --all-features

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/04a-server-host-logic branch from a5e9e7c to a2f623f Compare July 1, 2026 20:38
@pgherveou pgherveou force-pushed the rust-core/04b-server-wire-chain branch from 4567da7 to 26cc238 Compare July 1, 2026 20:38
@pgherveou pgherveou force-pushed the rust-core/04b-server-wire-chain branch from 26cc238 to 937d576 Compare July 1, 2026 21:23
@pgherveou pgherveou force-pushed the rust-core/04a-server-host-logic branch from a2f623f to 96bec3b Compare July 1, 2026 21:23
pgherveou added 2 commits July 2, 2026 10:10
New crate defining the host syscall traits (storage, navigation, consent,
permissions, ...) that host runtimes implement. Types are re-exported from
truapi::versioned/v01 rather than redefined.
@pgherveou pgherveou force-pushed the rust-core/04a-server-host-logic branch from 96bec3b to 8035a9d Compare July 2, 2026 08:14
@pgherveou pgherveou force-pushed the rust-core/04b-server-wire-chain branch from 937d576 to 04d0a11 Compare July 2, 2026 08:14
@pgherveou pgherveou force-pushed the rust-core/04b-server-wire-chain branch from 04d0a11 to c43bd21 Compare July 2, 2026 08:59
@pgherveou pgherveou force-pushed the rust-core/04a-server-host-logic branch 2 times, most recently from a696d4e to a3e6efa Compare July 2, 2026 10:59
@pgherveou pgherveou force-pushed the rust-core/04b-server-wire-chain branch from c43bd21 to 2a75bee Compare July 2, 2026 10:59
Comment thread rust/crates/truapi-server/src/host_rpc_client.rs
Comment thread rust/crates/truapi-server/src/chain_runtime.rs
pgherveou added 5 commits July 3, 2026 17:06
…backs

Extends the rustdoc-JSON code generator to emit the Rust dispatcher and wire
table consumed by truapi-server, plus the TS host-callbacks adapter. Golden
tests pin the emitted shapes.
@pgherveou pgherveou force-pushed the rust-core/04a-server-host-logic branch from a3e6efa to fa642c1 Compare July 3, 2026 15:32
@pgherveou pgherveou force-pushed the rust-core/04b-server-wire-chain branch from 2a75bee to e4d9a0d Compare July 3, 2026 15:32
Base automatically changed from rust-core/04a-server-host-logic to main July 3, 2026 20:33
@pgherveou pgherveou requested a review from a team July 3, 2026 20:33
@pgherveou pgherveou enabled auto-merge July 3, 2026 20:42
@pgherveou pgherveou added this pull request to the merge queue Jul 3, 2026
Merged via the queue into main with commit face719 Jul 3, 2026
12 checks passed
@pgherveou pgherveou deleted the rust-core/04b-server-wire-chain branch July 3, 2026 20:49
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