| Crates.io | norris |
| lib.rs | norris |
| version | 0.1.3 |
| created_at | 2023-01-17 20:36:26.365555+00 |
| updated_at | 2023-01-18 20:37:58.489374+00 |
| description | Simple async wrapper for the Chuck Norris Joke API: https://api.chucknorris.io/ |
| homepage | |
| repository | https://github.com/graves501/chucknorris_rs |
| max_upload_size | |
| id | 761258 |
| size | 7,144 |
Simple async wrapper for the Chuck Norris Joke API.
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(())
}
Please refer to docs.rs.