Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add serde support for public enums #167

Merged
merged 1 commit into from
Jun 20, 2023
Merged

Conversation

h7x4
Copy link
Contributor

@h7x4 h7x4 commented Jun 20, 2023

Ref #81

I have only implemented serialization/deserialization for the public enums for now. The structs largely depended on the types in libusb1-sys, which is nontrivial to serialize due to things like raw pointers and user defined data, and doesn't really make sense to deserialize (AFAIK).

The serialization is hidden behind the serde feature flag.

@a1ien
Copy link
Owner

a1ien commented Jun 20, 2023

Looks good to me. Thanks.

@a1ien a1ien merged commit c7d08c7 into a1ien:master Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants