Registry / networking / dbus-tokio

dbus-tokio

JSON →
library0.7.6rscratesunverified

Makes it possible to use Tokio with D-Bus, a bus commonly used on Linux for inter-process communication.

# Cargo.toml [dependencies] dbus-tokio = "0.7.6"
INSTALL
IMPORT
SIG · DBUS-TOKIO
D
dbus-tokio
networkingrustv0.7.6
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 dbus_tokio::connection::Connection;

Connects to the D-Bus system bus using Tokio.

use dbus_tokio::connection::Connection; #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { let conn = Connection::new_system().await?; println!("Connected to D-Bus system bus"); Ok(()) }
Debug
Known issues
gotchaRequires a Tokio runtime to be active.
fix
Ensure you are using #[tokio::main] or manually create a Tokio runtime.
affects: >=0.7.0
Upgrade
Version history
0.7.6latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
26
OpenAI (training)
1
Resources
dbus-tokio — cargo add dbus-tokio · libregistry