- Notifications
You must be signed in to change notification settings - Fork65
A framework for building typesafe web backends in Rust
License
NotificationsYou must be signed in to change notification settings
specta-rs/rspc
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A blazing fast and easy to use TRPC-like server for Rust.
Website
Warning
rspc is no longer being maintained.Learn more.
You define arspc
router and attach procedures to it like below. This will be very familiar if you have usedtrpc orGraphQL before.
let router = <rspc::Router>::new().query("version", |t|{t(|ctx,input:()|"0.0.1")}).mutation("helloWorld", |t|{t(|ctx,input:()|async{"Hello World!"})});
- Per Request Context - Great for database connection & authentication data
- Middleware - With support for context switching
- Merging routers - Great for separating code between files
This project is based offtrpc and was inspired by the bridge systemJamie Pine designed forSpacedrive. A huge thanks to everyone who helped inspire this project!
About
A framework for building typesafe web backends in Rust