Registry / networking / tokio-i3ipc

tokio-i3ipc

JSON →
library0.16.0rscratesunverified

Bindings for i3 and tokio allowing async applications to communicate with i3 over its IPC interface.

# Cargo.toml [dependencies] tokio-i3ipc = "0.16.0"
INSTALL
IMPORT
SIG · TOKIO-I3IPC
T
tokio-i3ipc
networkingrustv0.16.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

I3Connection
use tokio_i3ipc::I3Connection;

Connects to i3 window manager and retrieves workspace list asynchronously.

use tokio_i3ipc::I3Connection; #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { let mut conn = I3Connection::connect().await?; let workspaces = conn.get_workspaces().await?; println!("Workspaces: {:?}", workspaces); Ok(()) }
Debug
Known issues
gotchaRequires tokio runtime
fix
Use #[tokio::main] or manually create a tokio runtime
affects: >=0.1.0
Upgrade
Version history
0.16.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
OpenAI (training)
1
Resources
tokio-i3ipc — cargo add tokio-i3ipc · libregistry