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

Cannot serialize sequence of tags #76

Closed
ebkalderon opened this issue Aug 25, 2018 · 2 comments · Fixed by #173
Closed

Cannot serialize sequence of tags #76

ebkalderon opened this issue Aug 25, 2018 · 2 comments · Fixed by #173

Comments

@ebkalderon
Copy link

ebkalderon commented Aug 25, 2018

I was using serde-xml-rs with the vkxml crate in one of my projects, and although the structures it exposes implement Serialize, the serialization fails due to serialize_seq() not being supported in serde-xml-rs, as described in this code block.

In this library, a valid vk_new.xml file is represented an ordered sequence of RegistryElement tags (see the lib.rs). Therefore, it intuitively appears straightforward to iterate over each element in the sequence and serialize them in turn. However, the comment left in the serialize_seq() method leads me to believe that this task isn't as simple as it seems.

Would anyone please elaborate on why this behavior isn't supported?

EDIT: I see that #36 has been open for about a year. What's the status?

@jrmiller82
Copy link

It's because it's a deserializer only as of now.

@flying-sheep
Copy link

It does have a serializer implementation, albeit limited. If I can help to get the ball rolling, I will!

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

Successfully merging a pull request may close this issue.

3 participants