#ipc #dbus #tokio #communication #inter-process #api-bindings

dbus-tokio

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

18 releases

0.7.6 Mar 9, 2023
0.7.5 Sep 19, 2021
0.7.4 Aug 6, 2021
0.7.3 Jan 6, 2021
0.1.1 Jun 27, 2017

#811 in Unix APIs

Download history 10217/week @ 2024-08-31 10853/week @ 2024-09-07 10769/week @ 2024-09-14 12332/week @ 2024-09-21 10565/week @ 2024-09-28 11830/week @ 2024-10-05 11342/week @ 2024-10-12 11969/week @ 2024-10-19 10829/week @ 2024-10-26 11474/week @ 2024-11-02 10910/week @ 2024-11-09 10874/week @ 2024-11-16 10921/week @ 2024-11-23 11674/week @ 2024-11-30 11986/week @ 2024-12-07 10742/week @ 2024-12-14

47,013 downloads per month
Used in 101 crates (19 directly)

Apache-2.0/MIT

470KB
8K SLoC

Tokio integration for D-Bus

This crate integrates the dbus crate with the tokio async framework.

See the examples for how to get started.

For server side functionality, you can use the dbus-crossroads crate to have async method and property handlers.

Invitation

You are hereby invited to participate in the development of dbus-tokio and the other dbus crates:

  • If you have discovered what you believe is a bug, file an issue.
  • If you have questions or comments that the documentation cannot answer in an easy way, start a discussion.
  • If you have smaller improvements to code, documentation, examples etc, go ahead and submit a pull request. Larger pieces of work are better off discussed first.

The code is Apache 2.0 / MIT dual licensed. Any code submitted in Pull Requests, discussions or issues are assumed to have this license, unless explicitly stated otherwise.

Requirements

Same as for the D-Bus crate: Libdbus 1.6 or higher, and latest stable release of Rust. If you run Ubuntu (any maintained version should be okay), this means having the libdbus-1-dev and pkg-config packages installed while building, and the libdbus-1-3 package installed while running.

Dependencies

~7–15MB
~212K SLoC