xrpl_mithril_client/lib.rs
1#![doc(html_logo_url = "https://raw.githubusercontent.com/KyleWMiller/xrpl-mithril/main/assets/mithrilLogo.png")]
2//! Network clients for connecting to XRP Ledger nodes.
3//!
4//! This crate provides:
5//! - JSON-RPC client over HTTP (`reqwest` + `rustls`)
6//! - WebSocket client with subscription support (`tokio-tungstenite`)
7//! - Transport-agnostic [`Client`] trait for generic code
8//! - Typed subscription streams for real-time ledger events
9
10#![forbid(unsafe_code)]
11
12pub mod client;
13pub mod error;
14pub mod jsonrpc;
15pub mod subscription;
16pub mod websocket;
17
18pub use client::Client;
19pub use error::ClientError;
20pub use jsonrpc::JsonRpcClient;
21pub use websocket::WebSocketClient;