xesite/lib/jsonfeed
Cadey Ratio 6be8b24dd2 rename jsonfeed to xe_jsonfeed to prepare for my own extensions
Signed-off-by: Xe Iaso <me@christine.website>
2022-07-04 14:44:00 +00:00
..
src Cache better (#296) 2021-01-14 22:36:34 -05:00
.gitignore Rewrite site backend in Rust (#178) 2020-07-16 15:32:30 -04:00
Cargo.toml rename jsonfeed to xe_jsonfeed to prepare for my own extensions 2022-07-04 14:44:00 +00:00
LICENSE-APACHE Rewrite site backend in Rust (#178) 2020-07-16 15:32:30 -04:00
LICENSE-MIT Rewrite site backend in Rust (#178) 2020-07-16 15:32:30 -04:00
README.adoc Rewrite site backend in Rust (#178) 2020-07-16 15:32:30 -04:00

README.adoc

= JSON Feed Parser

[link=https://github.com/pwoolcoc/jsonfeed]
image::https://img.shields.io/crates/v/jsonfeed.svg[JSON Feed crate version]

This is a http://jsonfeed.org[JSON Feed] parser in Rust. Just a thin layer on top of `serde`, but it
provides serialization & deserialization, along with a Builder API for constructing feeds.

Note that this is alpha, I still need to add a lot of tests and a couple more features.

== Example

----
extern crate jsonfeed;
extern crate reqwest;

fn main() {
	let resp = reqwest::get("https://example.com/feed.json").unwrap();
	let feed = jsonfeed::from_reader(resp).unwrap();
	println!("Feed title is: {}", feed.title);
}
----

TODO:

* Tests. Lots and lots of tests
* Implement ability to add, serialize, and deserialize custom attributes from the json feed spec