5 unstable releases

0.3.1 Apr 6, 2024
0.3.0 Apr 5, 2024
0.2.0 Feb 22, 2024
0.1.1 Aug 14, 2023
0.1.0 Dec 24, 2022

#307 in Unix APIs

Download history 1694/week @ 2024-01-03 1360/week @ 2024-01-10 1375/week @ 2024-01-17 1253/week @ 2024-01-24 1824/week @ 2024-01-31 1677/week @ 2024-02-07 2304/week @ 2024-02-14 2544/week @ 2024-02-21 2305/week @ 2024-02-28 2324/week @ 2024-03-06 2712/week @ 2024-03-13 2894/week @ 2024-03-20 3224/week @ 2024-03-27 3052/week @ 2024-04-03 3009/week @ 2024-04-10 2364/week @ 2024-04-17

12,028 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

~11–23MB
~337K SLoC