rust-syndication

Build Status

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-f1b9a14703b6 TechCrunch 2019-04-01T07:30:00Z urn:uuid:4ae8550b-2987-49fa-9f8c-54c180c418ac Ford hires Elon Musk as CEO 2019-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 startups Ford hires Elon Musk as CEO 01 Apr 2019 07:30:00 GMT In 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

License

Licensed under either of

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.