Skip to content

Support serializing Vec<T> as an attribute - #207

Merged
MarcAntoine-Arnaud merged 8 commits into
luminvent:mainfrom
jondo2010:serialize_vec_as_attribute
Dec 10, 2025
Merged

MarcAntoine-Arnaud merged 8 commits into
luminvent:mainfrom
jondo2010:serialize_vec_as_attribute

Conversation

@jondo2010

Copy link
Copy Markdown
Contributor

This is already supported in deserializing, so adding the other side now.

Example:

#[yaserde(attribute = true)]
field: Vec<u32>

should serialize into <MyTag field="1 2 3" />

@MarcAntoine-Arnaud
MarcAntoine-Arnaud merged commit 2adc731 into luminvent:main Dec 10, 2025
4 checks passed
@MarcAntoine-Arnaud

Copy link
Copy Markdown
Contributor

Sorry for the delay, thank you for this contribution !

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 this pull request may close these issues.

2 participants