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

#68 in No standard library

Download history 54/week @ 2024-03-13 35/week @ 2024-03-20 25/week @ 2024-03-27 56/week @ 2024-04-03 5/week @ 2024-04-10 18/week @ 2024-04-17 31/week @ 2024-04-24 46/week @ 2024-05-01 31/week @ 2024-05-08 31/week @ 2024-05-15 57/week @ 2024-05-22 52/week @ 2024-05-29 43/week @ 2024-06-05 29/week @ 2024-06-12 37/week @ 2024-06-19 165/week @ 2024-06-26

281 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
~23K SLoC