Specta LogoSpecta
1.0.0-rc.x (alpha)

Actix Web

The procedure-based rewrite does not include an Actix Web adapter in the checked source revision. Do not use an older rspc-actix-web package with this router API unless you have verified compatibility.

Available options

  • Use the Axum adapter for the experimental router.
  • Keep an existing Actix application on its matching rspc and adapter versions.
  • Write an adapter around Procedures<TCtx> if you need to keep Actix and adopt the rewrite.

Adapter requirements

An Actix adapter must extract request context, find the procedure, deserialize its input, poll its result stream, and encode the response expected by the client. It also owns request limits and transport errors.

For subscriptions, add WebSocket message routing and cancellation. See the HTTP protocol and execution API before starting an implementation.

Edit on GitHub

Last updated on

On this page