#rpc #json-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


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.7–1.6MB
~35K SLoC