Registry / networking / swayipc-async

swayipc-async

JSON →
library3.0.0rscratesunverified

A library for controlling sway through its IPC interface asynchronously.

# Cargo.toml [dependencies] swayipc-async = "3.0.0"
INSTALL
IMPORT
SIG · SWAYIPC-ASYNC
S
swayipc-async
networkingrustv3.0.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.

Connection
use swayipc_async::Connection;

Connects to the Sway IPC and retrieves workspace list asynchronously.

use swayipc_async::Connection; #[tokio::main] async fn main() { let mut conn = Connection::new().await.unwrap(); let workspaces = conn.get_workspaces().await.unwrap(); }
Debug
Known issues
gotchaRequires an async runtime like Tokio.
fix
Add `tokio` as a dependency and use `#[tokio::main]` or another async runtime.
affects: >=3.0.0
Upgrade
Version history
3.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
OpenAI (training)
1
Resources
swayipc-async — cargo add swayipc-async · libregistry