thin-jsonrpc-client

Crates.iothin-jsonrpc-client
lib.rsthin-jsonrpc-client
version0.1.0
sourcesrc
created_at2023-08-01 21:53:30.936947
updated_at2023-08-06 14:41:16.086633
descriptionA lightweight, runtime agnostic JSON-RPC client
homepage
repository
max_upload_size
id932248
size47,059
James Wilson (jsdw)

documentation

README

thin-jsonrpc-client

A lightweight wrapper around something that can send bytes and something that can hand them back which implements the JSON-RPC specification. The main goals of this are:

  • To be backend independent; use whichever Websocket (or other) library you prefer.
  • To be async runtime independent; use whatever you prefer.
  • To support backpressure. You're handed back a "driver" which must be polled to drive receipt of messages; this can react to the messages (or errors) that come back, and rate limit by polling less frequently. Or, you can just run it in a task and forget about it if you don't care.
  • To make it easy to access streams of server notifications (messages without ids attached). This streams can be used to build higher level logic on top, like handling for subscriptions and such.
Commit count: 0

cargo fmt