dbus-launch 0.2.0

A D-Bus daemon launcher
Documentation
  • Coverage
  • 80.77%
    21 out of 26 items documented3 out of 19 items with examples
  • Size
  • Source code size: 42.77 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.12 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 16s Average build duration of successful builds.
  • all releases: 16s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • tmiasko/dbus-launch-rs
    0 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • tmiasko

dbus-daemon-rs

A tool for starting an new isolated instance of a dbus-daemon or a dbus-broker, with option to configure and start services using D-Bus activation.

Examples

Launching a dbus-daemon process

// Start the dbus-daemon.
let daemon = dbus_launch::Launcher::daemon()
    .launch()
    .expect("failed to launch dbus-daemon");

// Use dbus-daemon by connecting to `daemon.address()` ...

// Stop the dbus-daemon process by dropping it.
drop(daemon);

Starting custom services using D-Bus activation

use std::path::Path;

let daemon = dbus_launch::Launcher::daemon()
    .service("com.example.Test", Path::new("/usr/lib/test-service"))
    .launch()
    .expect("failed to launch dbus-daemon");

// Use com.example.Test service by connecting to `daemon.address()` ...

License

Licensed under MIT License.