async-jsonrpc-client 0.3.0

An asynchronous JSON-RPC 2.0 client library
Documentation
//! An async JSON-RPC 2.0 client library.

#![deny(missing_docs)]

mod error;
mod transport;

#[cfg(any(feature = "http-async-std", feature = "http-tokio"))]
mod http_client;
#[cfg(any(feature = "ws-async-std", feature = "ws-tokio"))]
mod ws_client;

pub use self::transport::{BatchTransport, PubsubTransport, Transport};

#[cfg(any(feature = "http-async-std", feature = "http-tokio"))]
pub use self::{
    error::HttpClientError,
    http_client::{HttpClient, HttpClientBuilder},
};
#[cfg(any(feature = "ws-async-std", feature = "ws-tokio"))]
pub use self::{
    error::{WsClientError, WsError},
    ws_client::{WsClient, WsClientBuilder, WsSubscription},
};

pub use http::header::{self, HeaderName, HeaderValue};
pub use jsonrpc_types::v2::*;