Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

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

Open
zeenix opened this issue May 8, 2023 · 3 comments
Open

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

zeenix opened this issue May 8, 2023 · 3 comments

Comments

@zeenix
Copy link
Collaborator

zeenix commented May 8, 2023

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

@zeenix
Copy link
Collaborator Author

zeenix commented May 8, 2023

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

@zeenix
Copy link
Collaborator Author

zeenix commented May 8, 2023

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
Copy link
Collaborator Author

zeenix commented May 9, 2023

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant