#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

#12 in #jsonrpc

Download history 1/week @ 2023-12-11 52/week @ 2023-12-18 64/week @ 2024-01-22 8/week @ 2024-02-12 47/week @ 2024-02-19 34/week @ 2024-02-26 47/week @ 2024-03-04 112/week @ 2024-03-11 16/week @ 2024-03-18 13/week @ 2024-03-25

191 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