cuprate_rpc_types/
lib.rs

1#![doc = include_str!("../README.md")]
2#![cfg_attr(docsrs, feature(doc_cfg))]
3#![allow(
4    clippy::allow_attributes,
5    reason = "macros (internal + serde) make this lint hard to satisfy"
6)]
7
8mod constants;
9#[cfg(any(feature = "serde", feature = "epee"))]
10mod defaults;
11mod free;
12#[cfg(feature = "from")]
13mod from;
14mod macros;
15mod rpc_call;
16
17#[cfg(feature = "serde")]
18mod serde;
19
20pub mod base;
21pub mod bin;
22pub mod json;
23pub mod misc;
24pub mod other;
25
26pub use constants::{
27    CORE_RPC_STATUS_BUSY, CORE_RPC_STATUS_FAILED, CORE_RPC_STATUS_NOT_MINING, CORE_RPC_STATUS_OK,
28    CORE_RPC_STATUS_PAYMENT_REQUIRED, CORE_RPC_VERSION, CORE_RPC_VERSION_MAJOR,
29    CORE_RPC_VERSION_MINOR,
30};
31pub use rpc_call::{RpcCall, RpcCallValue};
32
33// false-positive: used in tests
34#[cfg(test)]
35mod test {
36    extern crate cuprate_test_utils;
37    extern crate serde_json;
38}