electrum_streaming_client
A streaming, sans-IO Electrum client for asynchronous and blocking Rust applications.
This crate provides low-level primitives and high-level clients for communicating with Electrum
servers over JSON-RPC. It supports both asynchronous (futures/tokio) and blocking transport
models.
Features
- Streaming protocol support: Handles both server-initiated notifications and responses.
- Transport agnostic: Works with any I/O type implementing the appropriate
Read/Writetraits. - Sans-IO core: The [
State] struct tracks pending requests and processes server messages. - Typed request/response system: Strongly typed Electrum method wrappers with minimal overhead.
Example (async with Tokio)
use ;
use TcpStream;
use StreamExt;
async
Optional Features
tokio: Enables [AsyncClient::new_tokio] for use with Tokio-compatible streams.
License
MIT