#dbus #systemd #linux #zbus #async

zbus_systemd

A pure-Rust library to interact with systemd DBus services

11 releases

0.0.11 Dec 20, 2023
0.0.10 Jul 7, 2023
0.0.9 Jun 29, 2023
0.0.8 Nov 16, 2022
0.0.3 Feb 14, 2022

#290 in Unix APIs

Download history 205/week @ 2023-10-31 251/week @ 2023-11-07 171/week @ 2023-11-14 184/week @ 2023-11-21 156/week @ 2023-11-28 226/week @ 2023-12-05 189/week @ 2023-12-12 143/week @ 2023-12-19 96/week @ 2023-12-26 221/week @ 2024-01-02 211/week @ 2024-01-09 236/week @ 2024-01-16 172/week @ 2024-01-23 132/week @ 2024-01-30 146/week @ 2024-02-06 269/week @ 2024-02-13

761 downloads per month
Used in 11 crates (via printnanny-dbus)

MIT/Apache

430KB
6K SLoC

zbus_systemd

crates.io Documentation

⚠️ This is an in-progress v0.0 Proof-of-Concept, do not rely on it.

A pure-Rust library to interact with systemd DBus services.

zbus_systemd provides support for interacting with the whole suite of systemd services over DBus.

Generating the code

This project uses just for commands, to generate the code after making changes 'just' run just.

Motivations and trade-offs

This library tries to achieve the following goals:

  • provide coverage for all systemd DBus services in a single crate
  • build on top of a Rust-native DBus stack, thanks to zbus
  • statically generate library code directly from systemd definitions
  • mainly rely on generated interfaces, with few manual overrides where needed

Examples

Some code snippets are available under examples.

License

Licensed under either of

at your option.

Dependencies

~12–25MB
~367K SLoC