Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A framework for building typesafe web backends in Rust

License

NotificationsYou must be signed in to change notification settings

specta-rs/rspc

Repository files navigation

Logo

rspc

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

Website


Discordcrates.iodownload count badgedocs.rsnpm (scoped)

Warning

rspc is no longer being maintained.Learn more.

Example

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!"})});

Features:

  • Per Request Context - Great for database connection & authentication data
  • Middleware - With support for context switching
  • Merging routers - Great for separating code between files

Inspiration

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!


[8]ページ先頭

©2009-2025 Movatter.jp