rspc

🚧 Work in progress 🚧

A blazing fast and easy to use TRPC-like server for Rust.

Website


Discord crates.io download count badge docs.rs npm (scoped)


Example

You define a rspc router and attach resolvers to it like below. This will be very familiar if you have used trpc or GraphQL before.

rust let router = <rspc::Router>::new() .query("version", |_| "0.0.1") .mutation("helloWorld", |_| async { "Hello World!" });

Features:

Inspiration

This project is based off trpc and was inspired by the bridge system Jamie Pine designed for Spacedrive. A huge thanks to everyone who helped inspire this project!