Library for serializing Atom and RSS web feeds. Wraps around rust-atom and rust-rss.
Usage
Reading
```rust
let atom_str = r#"
urn:uuid:b3420f84-6bdf-4f46-a225-f1b9a14703b6TechCrunch2019-04-01T07:30:00Zurn:uuid:4ae8550b-2987-49fa-9f8c-54c180c418acFord hires Elon Musk as CEO2019-04-01T07:30:00Z
"#;
match atomstr.parse::().unwrap() {
Feed::Atom(atomfeed) => println!("Atom feed first entry: {:?}", atom_feed.entries[0].title),
_ => {}
};
let rss_str = r#"
TechCrunch
http://techcrunch.com
The latest technology news and information on startupsFord hires Elon Musk as CEO01 Apr 2019 07:30:00 GMTIn an unprecedented move, Ford hires Elon Musk.
"#;
match rssstr.parse::().unwrap() {
Feed::RSS(rssfeed) => println!("RSS feed first entry: {:?}",
rss_feed.items[0].title),
_ => {}
};
```
Writing
Currently not supported.
Todo
Parse feeds into common format.
Support writing feeds.
License
Licensed under either of
Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally
submitted for inclusion in the work by you, as defined in the Apache-2.0
license, shall be dual licensed as above, without any additional terms or
conditions.