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

#39 in No standard library

Download history 96/week @ 2024-11-18 36/week @ 2024-11-25 47/week @ 2024-12-02 200/week @ 2024-12-09 107/week @ 2024-12-16 163/week @ 2024-12-23 95/week @ 2024-12-30 110/week @ 2025-01-06 128/week @ 2025-01-13 160/week @ 2025-01-20 77/week @ 2025-01-27 126/week @ 2025-02-03 169/week @ 2025-02-10 120/week @ 2025-02-17 106/week @ 2025-02-24 78/week @ 2025-03-03

478 downloads per month
Used in 3 crates

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.3–1MB
~21K SLoC