lib.rs 897 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")]
David's avatar
David committed
pub use utils::server::rpc_module::{RpcModule, SubscriptionSink};
David's avatar
David committed

/// Procedural macros for JSON RPC implementations.
#[cfg(feature = "macros")]
pub use proc_macros;
/// Common types used to implement JSON RPC server and client.
David's avatar
David committed
#[cfg(any(feature = "types", feature = "macros"))]
Igor Aleksanov's avatar
Igor Aleksanov committed
pub mod types {
	pub use ::types::*;

	/// Set of RPC methods that can be mounted to the server.
	#[cfg(feature = "server")]
	pub use utils::server::rpc_module::{RpcModule, SubscriptionSink};
}