Hello everybody! I am pleased to announce a small library to generate XML without needing to fear XML injections, thanks to marker traits and a typestate builder.
xmlsafe on crates.io, if this sounds interesting to you.
I also wrote a blog post where I go into more detail:
Don’t panic, it’s just XML & in types we trust
Note that xmlsafe also comes with a simple but convenient eDSL (as shown in the README).
I hope you find it as useful as I do and I am happy to hear your thoughts and feedback