Skip to content

feat: add Rust host runtime boundary#247

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

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

@pgherveou

Copy link
Copy Markdown
Collaborator

that's probably a dup of #104 ?

@replghost

Copy link
Copy Markdown
Contributor Author

Closing this as superseded by the active Rust-core stack in #104.

The closest overlap is #254 for Rust dispatcher / wire-table codegen; the subsequent stack PRs (#255 and later) carry the intended truapi-server, runtime, WASM, and dotli integration direction. The small CI-hardening suggestion from this branch has been left on #253: #253 (comment)

@replghost replghost closed this Jul 1, 2026
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