1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
//! An asynchronous JSON-RPC client library, which supports HTTP and WebSocket.

#![deny(missing_docs)]

#[macro_use]
extern crate log;

mod errors;
mod transports;
mod types;

pub use self::errors::{Result, RpcError};
#[cfg(feature = "http")]
pub use self::transports::HttpTransport;
pub use self::transports::{BatchTransport, PubsubTransport, Transport};
#[cfg(feature = "ws")]
pub use self::transports::{NotificationStream, WebSocketTransport};
pub use self::types::*;