no-std json-rpc-types

Type definitions for JSON-RPC

14 releases (stable)

1.3.4 Aug 28, 2023
1.3.0 Mar 14, 2023
1.2.0 Sep 11, 2022
1.0.3 Jul 7, 2022
1.0.0-beta.4 Oct 3, 2020

#56 in No standard library

Download history 24/week @ 2024-07-21 188/week @ 2024-07-28 145/week @ 2024-08-04 39/week @ 2024-08-11 7/week @ 2024-08-18 19/week @ 2024-08-25 69/week @ 2024-09-01 210/week @ 2024-09-08 60/week @ 2024-09-15 139/week @ 2024-09-22 95/week @ 2024-09-29 65/week @ 2024-10-06 72/week @ 2024-10-13 38/week @ 2024-10-20 55/week @ 2024-10-27 70/week @ 2024-11-03

239 downloads per month
Used in snarkos-rpc

BSL-1.0 license

22KB
446 lines

json-rpc-types

Rust Crates.io Documentation

This library provides generic type definitions to serialize/deserialize JSON-RPC request/responses. It doesn't contain implementation itself as it is intended to be used as building block of actual implementation.

Features

  • id-str-only - Forces ID deserialization to assume string only.
  • id-number-only - Forces ID deserialization to assume number only.

lib.rs:

JSON-RPCv2 data types

This library provides generic type definitions to serialize/deserialize JSON-RPC request/responses. It doesn't contain implementation itself as it is intended to be used as building block of actual implementation.

Features

  • id-str-only - Forces ID deserialization to assume string only.
  • id-number-only - Forces ID deserialization to assume number only.

Dependencies

~0.4–1MB
~22K SLoC