A very small and very fast JSON-RPC 2.0 server-focused framework.
Provides integrations for both
actix-web (1.x, 2.x, 3.x, 4.x).
hyper-integration, etc. as needed.
actix-web-v4-integration is enabled by default. Make sure to add
default-features = false if using
hyper or other
Also see the
easy-errors feature flag (not enabled by default). Enabling this flag will implement
for anything that implements
Display, and the display value will be provided in the
message field of the JSON-RPC 2.0
Otherwise, custom errors should implement
ErrorLike to map errors to the JSON-RPC 2.0
Individual method handlers are
async functions that can take various kinds of args (things that can be extracted from the request, like
Data), and should return a
Result<Item, Error> where the
Item is serializable. See examples below.
Current version: 0.11.0