Skip to content

feat: add Rust host runtime boundary#247

Open
replghost wants to merge 2 commits into
mainfrom
codex/truapi-runtime-boundary
Open

feat: add Rust host runtime boundary#247
replghost wants to merge 2 commits into
mainfrom
codex/truapi-runtime-boundary

Conversation

@replghost

Copy link
Copy Markdown
Contributor

Summary

  • adds a minimal truapi-server crate for host runtime mechanics: SCALE frame codec, dispatcher, transport trait, and subscription lifecycle
  • extends truapi-codegen with --rust-output to generate the Rust dispatcher and wire table from the existing Rust trait surface
  • wires scripts/codegen.sh to regenerate the checked-in Rust dispatcher alongside the existing TS generated outputs
  • adds golden/idempotence tests, frame codec tests, subscription lifecycle tests, and Rust/TS wire-table parity coverage

Scope

This PR intentionally does not add host business logic. It does not include wallet, statement-store implementation, payment logic, smoldot provider, permissions policy, native/mobile bridges, or platform callbacks.

Verification

  • cargo +nightly rustdoc -p truapi -- -Z unstable-options --output-format json
  • cargo run -p truapi-codegen -- --input target/doc/truapi.json --output /private/tmp/truapi-generated-ts --rust-output rust/crates/truapi-server/src/generated --codec-version 1
  • cargo +nightly fmt --check
  • cargo test -p truapi-codegen -p truapi-server --all-features
  • cargo test --workspace --all-features
  • cargo clippy --workspace --all-targets --all-features -- -D warnings

@replghost replghost requested a review from a team June 30, 2026 20:12
@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/​tempfile@​3.27.09810093100100

View full report

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.

1 participant