zbus-old icon indicating copy to clipboard operation
zbus-old copied to clipboard

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

Open zeenix opened this issue 2 years ago • 3 comments

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

zeenix avatar May 08 '23 23:05 zeenix

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

zeenix avatar May 08 '23 23:05 zeenix

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 avatar May 08 '23 23:05 zeenix

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.

zeenix avatar May 09 '23 08:05 zeenix