59 releases (28 breaking)
new 0.28.2 | Oct 23, 2024 |
---|---|
0.27.2 | Oct 10, 2024 |
0.26.7 | Jul 27, 2024 |
0.22.0 | Mar 27, 2024 |
#944 in WebAssembly
20,056 downloads per month
Used in 22 crates
(17 directly)
160KB
4.5K
SLoC
wRPC transport abstractions, codec and framing
wRPC is an RPC framework based on WIT. It follows client-server model, where peers (servers) may serve function and method calls invoked by the other peers (clients).
The two main abstractions on top of which wRPC is built are:
- [Invoke] - the client-side handle to a wRPC transport, allowing clients to invoke WIT functions over wRPC transport
- [Serve] - the server-side handle to a wRPC transport, allowing servers to serve WIT functions over wRPC transport
Implementations of [Invoke] and [Serve] define transport-specific, multiplexed bidirectional byte stream types:
Invoke::Incoming
andServe::Incoming
represent the stream incoming from a peer.Invoke::Outgoing
andServe::Outgoing
represent the stream outgoing to a peer.
Dependencies
~4–13MB
~145K SLoC