-
Notifications
You must be signed in to change notification settings - Fork 5
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
Unable to serialize or deserialize #2
Comments
If I swap the |
@c-o-l-o-r thanks for the issue. I have released a new version Previously, this crate did not depend on However, I don't think there is any downside for this crate to depend on I'm closing this, but please let me know if |
Thanks for the quick response! I've updated
Maybe 128 is too low? Line 20 in 5c91851
|
@c-o-l-o-r can you confirm that it is this proc-macro that is causing the stack overflow? For example, if you put:
At the top of your If so, I will increate the recursion limit here to |
@kardeiz, yes if I put |
Okay, If that doesn't work, I'll need to do some research into the implications of very large recursion limits, or see if there is anything I can do here to avoid running into this... |
Hmm, it looks like the issue persists. I even cloned this repo and raised the limit to a crazy number. I've been compiling this using the
|
@c-o-l-o-r Your issue on Can you share your code for |
It doesn't seem like the issue is related to the |
Aha! I encountered this exact issue a couple months ago: serde-rs/serde#1467. According to dtolnay, this is a compiler bug: rust-lang/rust#55779. I don't really understand all the issues around the bug report, but for a quick fix you can put: #[derive(serde_derive::Deserialize)]
struct Empty {} somewhere in your code to make the SO go away. Or if you have any other structs that |
Fascinating! Thank you @kardeiz! |
I'm trying to deserialize params that look like this:
["0x0000000000000000000000000000000000000000"]
using the following struct:
but I get these errors:
Even if I
use serde
(which I don't think I should need to?), the issues remain.The text was updated successfully, but these errors were encountered: