This project is a work in progress. I just wanted to try and replicate the syntax of trpc in Rust
A blazing fast and easy to use TRPC server for Rust.
You define a trpc
router and attach resolvers to it like below. This will be very familiar if you have used trpc or GraphQL before.
rust
let router = trpc_rs::Router::<()>::new()
.query("version", |_| "0.0.1")
.mutation("helloWorld", |_| async { "Hello World!" });
mutations
and queries
. Add comments to everything!ts-rs
#70