rss/
lib.rs

1#![warn(missing_docs)]
2#![allow(unknown_lints, while_let_on_iterator)]
3
4//! A fast RSS feed parser.
5//!
6//! # Reading
7//!
8//! Reading can be done using any object that implements the `BufRead` trait.
9//!
10//! ## Example
11//!
12//! ```rust,no_run
13//! use std::fs::File;
14//! use std::io::BufReader;
15//! use rss::Channel;
16//!
17//! let file = File::open("example.xml").unwrap();
18//! let reader = BufReader::new(file);
19//! let channel = Channel::read_from(reader).unwrap();
20//! ```
21
22extern crate quick_xml;
23
24#[macro_use]
25mod fromxml;
26
27mod channel;
28pub use channel::Channel;
29
30mod item;
31pub use item::Item;
32
33mod category;
34pub use category::Category;
35
36mod guid;
37pub use guid::Guid;
38
39mod enclosure;
40pub use enclosure::Enclosure;
41
42mod source;
43pub use source::Source;
44
45mod cloud;
46pub use cloud::Cloud;
47
48mod image;
49pub use image::Image;
50
51mod textinput;
52pub use textinput::TextInput;
53
54/// Types and functions for namespaced extensions.
55pub mod extension;
56pub use extension::Extension;
57
58mod error;
59pub use error::Error;
60
61mod parser;