7 releases

0.3.3 Aug 28, 2024
0.3.2 May 6, 2024
0.3.1 Apr 6, 2024
0.2.0 Feb 22, 2024
0.1.0 Dec 24, 2022

#436 in Unix APIs

Download history 2331/week @ 2024-07-18 1756/week @ 2024-07-25 1660/week @ 2024-08-01 1271/week @ 2024-08-08 1261/week @ 2024-08-15 1564/week @ 2024-08-22 1231/week @ 2024-08-29 734/week @ 2024-09-05 1328/week @ 2024-09-12 907/week @ 2024-09-19 1751/week @ 2024-09-26 2652/week @ 2024-10-03 1521/week @ 2024-10-10 1752/week @ 2024-10-17 1290/week @ 2024-10-24 719/week @ 2024-10-31

5,881 downloads per month

MPL-2.0 license

250KB
4K SLoC

systemd-zbus

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.

Notes

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.

Dependencies

~8–18MB
~271K SLoC