Crates.io | xkcd_get |
lib.rs | xkcd_get |
version | 0.2.0 |
source | src |
created_at | 2019-07-31 05:36:03.936967 |
updated_at | 2019-07-31 17:18:55.906351 |
description | XKCD API interface with all response fields, proper handling of dates, and documentation! |
homepage | https://github.com/emctague/xkcd_get |
repository | https://github.com/emctague/xkcd_get |
max_upload_size | |
id | 153136 |
size | 6,516 |
xkcd_get
provides a simple way of retrieving xkcd comic information.
[dependencies]
xkcd_get = "0.2.0"
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);
}