rust-syndication / rss

Library for serializing the RSS web content syndication format
https://crates.io/crates/rss
Apache License 2.0
419 stars 52 forks source link

Make ToXml public #134

Open Pajn opened 2 years ago

Pajn commented 2 years ago

Would it be possible to either make the toxml module public or add a pub use crate::toxml::ToXml to lib.rs?

andy128k commented 2 years ago

May you elaborate why this may be needed?

Pajn commented 2 years ago

I want to encode individual items to xml. I'm subscribing to an RSS feed and will do a bunch of data processing on each item. I need to store the input for followup and possible reprocessing. I could do that by pulling everything out to a struct of my own and use serde, however as from_xml is already public on individual items it feels natural that the libray would allow me to du the mirror operation on individual items as well.

andy128k commented 2 years ago

I think that from_xml was made public mistakenly. It should be pub(crate).

Asone commented 1 year ago

A small bump to agree with the request of this issue.

I'm pretty sure many use case that involves replication of partial content of the RSS feeds would benefit from this.