async-niri-socket
Async non-blocking communication with the niri IPC socket.
Features
- Two async runtime backends: Supports both
async-netandtokiovia feature flags - Async socket connection: Connect to the niri socket using
Socket::connect()(usesNIRI_SOCKETenv var) orSocket::connect_to()with a custom path - Request/response: Send requests to niri and receive replies via the
send()method - Event streaming: Convert the socket into an infinite [
Event] stream usinginto_event_stream()
Example
use AsyncNetSocket;
type NiriSocket = AsyncNetSocket;
async
Niri Support Matrix
| async-niri-socket | niri |
|---|---|
| 0.0.1..=0.0.2 | 25.11.0 |