-
Notifications
You must be signed in to change notification settings - Fork 77
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 AST #77
Conversation
Should this support deserializing as well? |
@LegNeato I think that would be ideal, yes. Sorry I didn't realize that I didn't add it in. WIll make the change. |
@LegNeato I now remember why I didn't add it initially. It's because of having to deal with lifetimes and I didn't want to bother with that at the time. I will eventually (hopefully soon) add it in, but just wanted to give you an update here. |
@tyranron are you ok with this landing without deserialize or do you want to wait? (I haven't reviewed yet FYI) |
Ah yeah, I was in the wrong project 🤣 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fairly mechanical and good. Can you add a test (this could just be calling a no-op function that has the Serialize bound) and add using / not using this flag to CI so we don't accidentally break it?
👋 I need both serialization and deserialization for a project I'm working on. I am willing to try to finish this PR by adding a test and also adding deserialization, but the second one might be a bit beyond my abilities. I checked out the wip commit before the reverts of the deserialization, but haven't been able to fix the lifetime issues. If someone is willing and available to provide some guidance, I'm still happy to try to make progress on this. The lifetime issues are pretty tricky as they seem to come from the derive macro implementation. On this line, the When I try removing those, I get fewer (10) compiler errors, that look like this
I tried using Any help appreciated! |
I got some help from a colleague: #80 |
Thanks @sodiumjoe, I'll close this PR in favour of yours. |
No description provided.