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

implement custom (de)serializers #10

Open
gballet opened this issue Dec 8, 2023 · 2 comments
Open

implement custom (de)serializers #10

gballet opened this issue Dec 8, 2023 · 2 comments
Assignees

Comments

@gballet
Copy link
Owner

gballet commented Dec 8, 2023

Some complex structure/unions might want to implement their custom serialization. It would be nice to allow types to support that, as zig does.

@gballet
Copy link
Owner Author

gballet commented Jan 3, 2024

actually this has already been implemented, I don't know why I ran into a problem where that didn't work. There must be a bug if that is the case, but I no longer have any example handy :|

@gballet gballet self-assigned this Jan 3, 2024
@jsign
Copy link
Collaborator

jsign commented Jan 10, 2024

@gballet, I've used custom decoders and everything looked fine. I'd to do #19 but that's a bit lateral.

I used a custom decodr so I could decode a union type (i.e: the Tx type). (More about that soon in phant).

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