1#![warn(missing_docs)]
11#![cfg_attr(docsrs, feature(doc_cfg))]
13
14mod auth;
15mod error;
16
17#[cfg(any(feature = "sync", feature = "aio"))]
18mod config;
19#[cfg(any(feature = "sync", feature = "aio"))]
20mod jsonrpc;
21#[cfg(any(feature = "sync", feature = "aio"))]
22#[cfg_attr(docsrs, doc(cfg(any(feature = "sync", feature = "aio"))))]
23pub mod params;
24
25pub mod types;
26
27#[cfg(feature = "sync")]
28#[cfg_attr(docsrs, doc(cfg(feature = "sync")))]
29pub mod sync;
30
31#[cfg(feature = "aio")]
32#[cfg_attr(docsrs, doc(cfg(feature = "aio")))]
33pub mod aio;
34
35pub use auth::Auth;
36pub use error::{Error, Result, RpcError};
37
38pub mod prelude {
44 #[cfg(feature = "sync")]
46 #[cfg_attr(docsrs, doc(cfg(feature = "sync")))]
47 pub mod sync {
48 pub use crate::params::positional;
49 pub use crate::sync::{
50 BlockchainRpc, Client, ClientBuilder, ControlRpc, FeeRpc, MempoolRpc, MiningRpc,
51 NetworkRpc, RawTransactionsRpc, RpcCall, RpcCallExt, UtilRpc,
52 };
53 }
54
55 #[cfg(feature = "aio")]
57 #[cfg_attr(docsrs, doc(cfg(feature = "aio")))]
58 pub mod aio {
59 pub use crate::aio::{
60 BlockchainRpc, Client, ClientBuilder, ControlRpc, FeeRpc, MempoolRpc, MiningRpc,
61 NetworkRpc, RawTransactionsRpc, RpcCallAsync, RpcCallAsyncExt, UtilRpc,
62 };
63 pub use crate::params::positional;
64 }
65
66 pub use crate::{Auth, Error, Result, RpcError};
67
68 #[cfg(all(feature = "sync", not(feature = "aio")))]
69 pub use sync::*;
70
71 #[cfg(all(feature = "aio", not(feature = "sync")))]
72 pub use aio::*;
73}
74
75#[cfg_attr(
79 all(feature = "sync", feature = "aio"),
80 doc = include_str!("../README.md")
81)]
82mod readme_doctest {}