🚧 Work in progress 🚧
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!" });
Msgpack support
Unit test for exporting types and validating schema
Cleanup the codebase -> Currently their is a lot of duplicate code between mutations
and queries
. Add comments to everything!
Warn user when not all variants of enum were registered -> Make it so they can turn this into unit test
ts-rs
#70