urbandictionary-0.4.0-alpha.0 has been yanked.
urbandictionary.rs
Unofficial async Rust client for the Urbandictionary API.
Installation
This library requires at least Rust 1.21.
Add the following dependency to your Cargo.toml:
= "0.3"
And include it in your project:
extern crate urbandictionary;
Examples
Using hyper with the hyper-tls HTTPS connector, retrieve a list of
definitions for a word and print the example of the second definition if it
exists:
extern crate futures;
extern crate hyper;
extern crate hyper_tls;
extern crate tokio_core;
extern crate urbandictionary;
use Future;
use ;
use HttpsConnector;
use Error;
use Core;
use HyperUrbanDictionaryRequester;
Using reqwest, print the definition of the word "cat":
extern crate reqwest;
extern crate urbandictionary;
use Client;
use Error;
use ReqwestUrbanDictionaryRequester;