Search for xkcd comics
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trivernis 3d0b675ddd
Expose error type and add rustls feature
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
src Expose error type and add rustls feature 3 years ago
.gitignore Add xkcd retrievel functions 4 years ago
Cargo.toml Expose error type and add rustls feature 3 years ago
LICENSE Create LICENSE 4 years ago
README.md Add README and Crates.io metadata 4 years ago

README.md

XKCD Search

This crate provides functions to search for xkcd comics by title.

Usage

use xkcd_search;

#[tokio::main]
async fn main() {
    let phone_entries = xkcd_search::search("Phone").await.unwrap();
    let mut comics = Vec::new();
    
    for (_title, id) in phone_entries {
        comics.push(xkcd_search::get_comic(id).await.unwrap())
    }
}

License

Apache-2.0