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
Refuses to serialize Rc<RefCell<Item>> field - despite #[serde(skip_serializing)] #2510
Comments
That is a problem with the |
The problem is because |
Thanks guys! I get that It would be very nice if the serde docs could provide some info about this limitation, and - at best - some examples on how to get around it. |
I am locking the issue because, as already pointed out above, this has literally nothing to do with serde. You can remove all serde attributes and derives from this code and still get the same error. |
When using the
"rc"
feature flag, serializing structs withVec<Rc<Child>>
fields works fine.However, if I add a field to the same struct that shouldn't be serialized (using
#[serde(skip_serializing)]
for that) containing aRefCell
(for example aRc<RefCell<Child>>
), it doesn't compile.The text was updated successfully, but these errors were encountered: