async_jsonrpc_client/
lib.rs

1//! An async JSON-RPC 2.0 client library.
2
3#![deny(missing_docs)]
4
5mod error;
6mod transport;
7
8#[cfg(any(feature = "http-async-std", feature = "http-tokio"))]
9mod http_client;
10#[cfg(any(feature = "ws-async-std", feature = "ws-tokio"))]
11mod ws_client;
12
13pub use self::transport::{BatchTransport, PubsubTransport, Transport};
14
15#[cfg(any(feature = "http-async-std", feature = "http-tokio"))]
16pub use self::{
17    error::HttpClientError,
18    http_client::{HttpClient, HttpClientBuilder},
19};
20#[cfg(any(feature = "ws-async-std", feature = "ws-tokio"))]
21pub use self::{
22    error::{WsClientError, WsError},
23    ws_client::{WsClient, WsClientBuilder, WsSubscription},
24};
25
26pub use http::header::{self, HeaderName, HeaderValue};
27pub use jsonrpc_types::v2::*;