| Crates.io | xkcd-search |
| lib.rs | xkcd-search |
| version | 0.1.2 |
| created_at | 2021-04-22 14:05:20.970362+00 |
| updated_at | 2021-07-29 19:16:15.74856+00 |
| description | Search for xkcd comics and retrieve metadata |
| homepage | |
| repository | https://github.com/Trivernis/xkcd-search-rs |
| max_upload_size | |
| id | 388147 |
| size | 18,884 |
This crate provides functions to search for xkcd comics by title.
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())
}
}
Apache-2.0