Skip to content

feat(truapi-platform): add host capability traits#249

Merged
pgherveou merged 7 commits into
mainfrom
rust-core/02-platform-traits
Jul 3, 2026
Merged

feat(truapi-platform): add host capability traits#249
pgherveou merged 7 commits into
mainfrom
rust-core/02-platform-traits

Conversation

@pgherveou

@pgherveou pgherveou commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

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.


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

@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
Addedcargo/​async-trait@​0.1.8910010093100100
Addedcargo/​url@​2.5.8100100100100100
Addedcargo/​unicode-normalization@​0.1.25100100100100100

View full report

@pgherveou pgherveou force-pushed the rust-core/01-truapi-testing-api branch from a302550 to c093b46 Compare June 30, 2026 22:09
@pgherveou pgherveou force-pushed the rust-core/02-platform-traits branch from 4b83619 to 4843b5c Compare June 30, 2026 22:10
@pgherveou pgherveou force-pushed the rust-core/01-truapi-testing-api branch from c093b46 to cf0b2c3 Compare June 30, 2026 22:15
@pgherveou pgherveou force-pushed the rust-core/02-platform-traits branch from 4843b5c to df4a0ba Compare June 30, 2026 22:15
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/02-platform-traits branch from 1a7d349 to 0a7b831 Compare July 1, 2026 20:38
@pgherveou pgherveou force-pushed the rust-core/02-platform-traits branch from 0a7b831 to d2454f8 Compare July 1, 2026 21:23
Comment thread rust/crates/truapi-platform/src/lib.rs
Comment thread rust/crates/truapi-platform/src/lib.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.

I dont want to be a blocker for this so approving, but one bigger nit, and one smaller one.

Comment thread rust/crates/truapi-platform/src/lib.rs
Comment thread rust/crates/truapi-platform/src/lib.rs
Comment thread rust/crates/truapi-platform/src/lib.rs Outdated
Comment thread rust/crates/truapi-platform/src/lib.rs Outdated
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/02-platform-traits branch from d2454f8 to 8c93e99 Compare July 2, 2026 08:14
Base automatically changed from rust-core/01-truapi-testing-api to main July 2, 2026 08:22
@pgherveou pgherveou requested a review from a team July 2, 2026 08:22
@pgherveou

Copy link
Copy Markdown
Collaborator Author

sorry for the force-push 🙈 need to fixup my skills that dispatch the PR from the umbrella #104 so it does not do it anymore

@pgherveou pgherveou enabled auto-merge July 2, 2026 09:38
@pgherveou pgherveou disabled auto-merge July 2, 2026 11:22
@pgherveou pgherveou added this pull request to the merge queue Jul 3, 2026
Merged via the queue into main with commit 6699af2 Jul 3, 2026
12 checks passed
@pgherveou pgherveou deleted the rust-core/02-platform-traits branch July 3, 2026 15:53
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