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 serialize/deserialize derives for public types #193

Merged
merged 1 commit into from
Aug 13, 2022
Merged

add serde serialize/deserialize derives for public types #193

merged 1 commit into from
Aug 13, 2022

Conversation

eliad-wiz
Copy link
Contributor

put them under non-default feature "serde1".

exclude some "native" types (such as OwnedFd), that can't
be serialized/deserialized properly.

Signed-off-by: Eliad Peller eliad.peller@wiz.io

put them under non-default feature "serde1".

exclude some "native" types (such as OwnedFd), that can't
be serialized/deserialized properly.

Signed-off-by: Eliad Peller <eliad.peller@wiz.io>
@eminence
Copy link
Owner

eminence commented Aug 8, 2022

LGTM on a quick skim, though I'll review more carefully tonight. I'm curious to know more about your use-case, if you don't mind sharing some details.

@eliad-wiz
Copy link
Contributor Author

we simply collect information about some processes, and would like to be able to serialize/deserialize the information easily (e.g. for consumption by other tools)

@eminence
Copy link
Owner

I spent some more time looking at this, and this continues to look good to me. Since this crate is predominately about parsing structured data, it makes sense to provide serde impls. I can't guarantee that I'll remember to add the derives on future structs, so don't hesitate to get in touch if something is missing

@eminence eminence merged commit da0a009 into eminence:master Aug 13, 2022
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.

2 participants