xkcd_get

Crates.ioxkcd_get
lib.rsxkcd_get
version0.2.0
sourcesrc
created_at2019-07-31 05:36:03.936967
updated_at2019-07-31 17:18:55.906351
descriptionXKCD API interface with all response fields, proper handling of dates, and documentation!
homepagehttps://github.com/emctague/xkcd_get
repositoryhttps://github.com/emctague/xkcd_get
max_upload_size
id153136
size6,516
Ethan McTague (emctague)

documentation

README

xkcd_get

Crates.io docs.rs

xkcd_get provides a simple way of retrieving xkcd comic information.

Cargo

[dependencies]
xkcd_get = "0.2.0"

Usage

use xkcd_get::Comic;

fn main () {
    let data = Comic::get(10).unwrap();
    let data_latest = Comic::latest().unwrap();
    println!("Comic 10 was titled {}! xkcd is now on comic {}! Wow!", data.title, data_latest.num);
}
Commit count: 13

cargo fmt