Open mathstuf opened 8 years ago
You currently can create a service on the bus, just by receiving messages and processing them. Admittedly, that's a fairly low-level API, but it works well for simple cases.
We're looking at options for using e.g. macros to conveniently expose rust methods over D-Bus. Stay tuned for that :-)
So I tried porting the ez-dbus library to dbus-bytestream, but the mut
requirement to send a message seems to get in the way :( . It seems dbus-rs gets away with it by hiding all the mut
behind the FFI and unsafe
blocks :/ .
It appears this is only for communicating over D-Bus, not for setting up a service on the bus.
Related, any plans for converting from an XML description to a Rust skeleton (c.f.,
qdbusxml2cpp
from Qt)?