dbus2 / zbus-old

Rust D-Bus crate.
https://gitlab.freedesktop.org/dbus/zbus
Other
49 stars 13 forks source link

zvariant: Support std::num::NonZero* types and std::time::Duration #344

Open zeenix opened 1 year ago

zeenix commented 1 year ago

In GitLab by @sophie-h on May 9, 2023, 01:21

zeenix commented 1 year ago

If by support you mean Type impl, we already support time::Duration at least. You need to enable time feature though.

zeenix commented 1 year ago

In GitLab by @sophie-h on May 9, 2023, 01:35

But I don't have any need to use time instead of std

zeenix commented 1 year ago

Ah gotcha. Sorry, your issue came super late at night. 😀

This should be quite trivial actually. Care to contribute? Just check how serde serializes those types and do a impl for them based on that, in the file I linked previously.