#json-rpc #rpc #no-std #networking #request-response

no-std smol-jsonrpc

Messages and related types for implementing the JSON-RPC protocol

3 unstable releases

0.2.0 Jul 19, 2023
0.1.1 Jun 23, 2023
0.1.0 Jun 20, 2023

#84 in #json-rpc

Download history 109/week @ 2024-03-12 14/week @ 2024-03-19 16/week @ 2024-03-26 50/week @ 2024-04-02 5/week @ 2024-04-09 12/week @ 2024-04-16 10/week @ 2024-04-23 21/week @ 2024-04-30 102/week @ 2024-05-07 134/week @ 2024-05-14 160/week @ 2024-05-21 167/week @ 2024-05-28 100/week @ 2024-06-04 19/week @ 2024-06-11 19/week @ 2024-06-18 2/week @ 2024-06-25

203 downloads per month
Used in 2 crates

MIT license

18KB
419 lines

smol-jsonrpc

Small JSON-RPC library for handling Request and Response messages in the JSON-RPC 2.0 protocol.

Makes no assumptions about transport layer, and is a default no_std library.

Note: the library currently requires the alloc crate. Future work may remove this requirement.

Using std

To use std-only features, enable the std feature:

smol_jsonrpc = { version = "x.x", features = ["std"] }

Dependencies

~0.6–1.4MB
~32K SLoC