rss-rs
RSS feed parser written in Rust.
Two XML parsing backends are currently supported, xml-rs and quick-xml. By default rss-rs uses xml-rs as its parser.
Usage
To use rss-rs just add the dependency to your Cargo.toml.
[]
= "0.1"
If you would like to use rss-rs with quick-xml as the XML parser then enable the quick-xml feature and disable default features.
rss-rs = {version = "0.1", features = ["quick-xml"], default-features = false}
The package includes a single crate named rss.
extern crate rss;
Reading
xml-rs
Reading can be done using any object that implements the Read trait.
let reader: Read = ...;
let channel = read_from.unwrap;
quick-xml
Reading can be done using any object that implements the BufRead trait.
let reader: BufRead = ...;
let channel = read_from.unwrap;
Todo
- Writing support