#type-safe #specta #typescript #async #rust-to-ts

rspc-procedure

Interface for a single type-erased operation that the server can execute

1 unstable release

new 0.0.1 Jan 28, 2025

#5 in #typesafe

49 downloads per month
Used in 4 crates

MIT license

45KB
995 lines

rspc Procedure

docs.rs

Interface for a single type-erased operation that the server can execute.


lib.rs:

Interface for a single type-erased operation that the server can execute.

HTTP integrations should prefer to depend on this crate instead of rspc.

TODO: Describe all the types and why the split? TODO: This is kinda like tower::Service TODO: Why this crate doesn't depend on Specta. TODO: Discuss the traits that need to be layered on for this to be useful. TODO: Discuss how middleware don't exist here.

TODO: Results must be 'static because they have to escape the closure.

Dependencies

~300–540KB
~11K SLoC