Skip to content

refactor(api): adopt Send async traits#312

Open
pgherveou wants to merge 1 commit into
feat/signing-host-ring-vrffrom
async-trait-migration
Open

refactor(api): adopt Send async traits#312
pgherveou wants to merge 1 commit into
feat/signing-host-ring-vrffrom
async-trait-migration

Conversation

@pgherveou

Copy link
Copy Markdown
Collaborator

Summary

  • migrate TrUAPI API traits to async-trait
  • require generated and handwritten API futures to be Send
  • preserve explicit future signatures for older generated protocol snapshots
  • add a compile-time Send assertion for product-frame dispatch

Validation

  • make check
  • wasm32 check
  • strict rustdoc/codegen drift check
  • cargo test -p truapi-codegen

This is the intermediary base for #264.

Native executors need dispatch futures that can move across Tokio worker
threads. Keep concise async signatures while teaching rustdoc codegen to
unwrap async-trait futures.
@pgherveou pgherveou mentioned this pull request Jul 24, 2026
@pgherveou
pgherveou marked this pull request as ready for review July 24, 2026 20:36
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