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 serialization/deserialization hook support for structs/unions #7

Open
RossComputerGuy opened this issue Apr 1, 2023 · 1 comment

Comments

@RossComputerGuy
Copy link

Similarly to how std.fmt supports adding a format() function to a struct or union, s2s should support it for custom serialization/deserialization or for when a type isn't fully supported. This would help with unsupported types that can't easily be serialized due to recursiveness.

@ikskuh
Copy link
Member

ikskuh commented Apr 1, 2023

I want to change s2s format in a breaking way so that arbitrary graphs can be serialized instead of a pure tree structure, so this issue will be resolved. Then, all runtime viable types are actually serializable with s2s except for a [*]T

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

No branches or pull requests

2 participants