rspc
A framework for building typesafe web backends in Rust
rspc defines Rust API procedures and generates types for a TypeScript client. A router groups procedures, middleware handles shared behavior, and an integration exposes the router over HTTP or Tauri IPC.
rspc is no longer maintained. See the maintenance announcement. These docs remain available for existing applications.
Choose your API version
- 0.3.0 documents the released
Router::queryandRouter::mutationAPI. - Next API documents the experimental procedure-based rewrite. The section retains its original
1.0.0-rc.xURL. It is not a promise of a maintained 1.0 release.
Do not mix the two APIs. They differ in router construction, middleware, error handling, and binding export. Keep Rust adapters and frontend packages compatible with your chosen version.
For a new Tauri application, see Tauri Specta. For shared data types without an RPC framework, use Specta directly.
Edit on GitHub
Last updated on
