60 releases (28 breaking)
0.28.3 | Nov 6, 2024 |
---|---|
0.27.2 | Oct 10, 2024 |
0.26.7 | Jul 27, 2024 |
0.22.0 | Mar 27, 2024 |
#561 in WebAssembly
26,346 downloads per month
Used in 27 crates
(21 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
~141K SLoC