lib.rs 674 B
Newer Older
//! jsonrpsee wrapper crate.

#[cfg(feature = "client")]
pub use http_client;

/// JSON RPC WebSocket client.
#[cfg(feature = "client")]
pub use ws_client;

#[cfg(feature = "server")]
pub use http_server;

/// JSON RPC WebSocket server.
#[cfg(feature = "server")]
pub use ws_server;

/// Set of RPC methods that can be mounted to the server.
David's avatar
David committed
#[cfg(feature = "server")]
pub use utils::server::rpc_module::RpcModule;

/// Procedural macros for JSON RPC implementations.
#[cfg(feature = "macros")]
pub use proc_macros;
/// Common types used to implement JSON RPC server and client.
#[cfg(feature = "macros")]
pub use types;