json_rpc_types/
lib.rs

1//! JSON-RPCv2 data types
2//!
3//! This library provides generic type definitions to serialize/deserialize JSON-RPC request/responses.
4//! It doesn't contain implementation itself as it is intended to be used as building block of actual implementation.
5//!
6//! ## Features
7//!
8//! - `id-str-only` - Forces ID deserialization to assume string only.
9//! - `id-number-only` - Forces ID deserialization to assume number only.
10#![warn(missing_docs)]
11
12#![no_std]
13#![cfg_attr(feature = "cargo-clippy", allow(clippy::style, clippy::derivable_impls))]
14#![cfg_attr(feature = "cargo-fmt", rustfmt::skip)]
15
16pub use str_buf;
17
18#[rustfmt::skip]
19mod version;
20pub use version::Version;
21#[rustfmt::skip]
22mod id;
23pub use id::Id;
24#[rustfmt::skip]
25mod error;
26pub use error::{ErrorCode, Error};
27#[rustfmt::skip]
28mod request;
29pub use request::Request;
30#[rustfmt::skip]
31mod response;
32pub use response::Response;
33#[rustfmt::skip]
34mod utils;