Skip to content

emctague/xkcd_get

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xkcd_get

Crates.io docs.rs Build Status

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);
}

About

Rust XKCD API interface

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages