#systemd #systemd #zbus


A dbus client (using zbus) for systemd

2 releases

0.1.1 Aug 14, 2023
0.1.0 Dec 24, 2022

#412 in Unix APIs

Download history 956/week @ 2023-08-09 1049/week @ 2023-08-16 1433/week @ 2023-08-23 1165/week @ 2023-08-30 1606/week @ 2023-09-06 1161/week @ 2023-09-13 1119/week @ 2023-09-20 993/week @ 2023-09-27 902/week @ 2023-10-04 973/week @ 2023-10-11 960/week @ 2023-10-18 1021/week @ 2023-10-25 1021/week @ 2023-11-01 913/week @ 2023-11-08 1036/week @ 2023-11-15 840/week @ 2023-11-22

3,964 downloads per month

MPL-2.0 license

866 lines


A wrapper around the dbus interfaces provided by systemd.

systemd-zbus aims to provide a convenient API abstraction of the dbus interface of systemd in rust, where possible parsing responses to concrete structs and enums.


This is a WIP, but entirely usable as it is. The generated methods from zbus-xmlgen all will work fine. The majority of these are untouched except for where the I/O of the API can benefit from some structs or enums to clarify and tidy things up.

PR's are welcome to help speed progress along. In reality there shouldn't be much to do.

Tests are lacking due to: most requiring root, and most generated methods should work without modification. Where the I/O of API was changed with struct or enums some tests were written to verify stuff.

Documentation is a little lacking but referring to https://www.freedesktop.org/software/systemd/man/systemctl.html can provide good insight as the API is generated directly from systemd dbus interface using zbus-xmlgen.


~351K SLoC