norris

Crates.ionorris
lib.rsnorris
version0.1.3
sourcesrc
created_at2023-01-17 20:36:26.365555
updated_at2023-01-18 20:37:58.489374
descriptionSimple async wrapper for the Chuck Norris Joke API: https://api.chucknorris.io/
homepage
repositoryhttps://github.com/graves501/chucknorris_rs
max_upload_size
id761258
size7,144
(graves501)

documentation

README

Norris

Simple async wrapper for the Chuck Norris Joke API.

Usage

Example for retrieving a random joke:

use::std::error::Error;
use::norris::get_random_joke;

#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
    let joke = get_random_joke().await?.value;
    println!("{}", joke);
    Ok(())
}

Documentation

Please refer to docs.rs.

Commit count: 9

cargo fmt