A framework for building typesafe web backends in Rust
See the code
Website
[!WARNING] rspc is no longer being maintained. Learn more.
You define a rspc router and attach procedures to it like below. This will be very familiar if you have used trpc or GraphQL before.
let router = <rspc::Router>::new()
.query("version", |t| {
t(|ctx, input: ()| "0.0.1")
})
.mutation("helloWorld", |t| {
t(|ctx, input: ()| async { "Hello World!" })
});
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!
(top 24 of 33)
501 followers · starred Dec 2022
827 followers · starred Jun 2024
258 followers · starred Oct 2023
1,256 followers · starred Aug 2023
A framework for building typesafe web backends in Rust
See the code
Website
[!WARNING] rspc is no longer being maintained. Learn more.
You define a rspc router and attach procedures to it like below. This will be very familiar if you have used trpc or GraphQL before.
let router = <rspc::Router>::new()
.query("version", |t| {
t(|ctx, input: ()| "0.0.1")
})
.mutation("helloWorld", |t| {
t(|ctx, input: ()| async { "Hello World!" })
});
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!
(top 24 of 33)
501 followers · starred Dec 2022
827 followers · starred Jun 2024
258 followers · starred Oct 2023
1,256 followers · starred Aug 2023