#systemd #dbus #zbus #linux #async

zbus_systemd

A pure-Rust library to interact with systemd DBus services

16 releases

0.0.16 Mar 25, 2024
0.0.12 Feb 26, 2024
0.0.11 Dec 20, 2023
0.0.10 Jul 7, 2023
0.0.3 Feb 14, 2022

#188 in Unix APIs

Download history 148/week @ 2024-01-02 149/week @ 2024-01-09 172/week @ 2024-01-16 113/week @ 2024-01-23 71/week @ 2024-01-30 91/week @ 2024-02-06 147/week @ 2024-02-13 244/week @ 2024-02-20 351/week @ 2024-02-27 687/week @ 2024-03-05 479/week @ 2024-03-12 802/week @ 2024-03-19 493/week @ 2024-03-26 515/week @ 2024-04-02 576/week @ 2024-04-09 480/week @ 2024-04-16

2,243 downloads per month
Used in 11 crates (via printnanny-dbus)

MIT/Apache

520KB
7.5K 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

~11–23MB
~339K SLoC