Parsing RSS and Atom From Scratch in Rust with quick-xml

Parsing RSS and Atom From Scratch in Rust with quick-xml A small axum service that parses RSS 2.0 and Atom 1.0 feeds into unified JSON, built on quick-xml without pulling in a feed framework. The point is that once you actually look at the formats, they’re not that complicated — and writing the parser yourself saves a meaningful chunk of your dependency tree. Every backend service that touches feeds ends up re-implementing the same glue. Different element names for the same concept. Dates that are half in RFC 822 and half in RFC 3339. Namespaced content:encoded living next to plain description. Atom’s link-as-attribute vs RSS’s link-as-text. And then you need to do something sensible when the producer left a field out, because half of them do. The normal answer in Rust is to…

Read more on DEV Community