gravatar 0.1.5

A small library that generates Gravatar image URLs.
Documentation

rust-gravatar

Build Status Cargo version License

Documentation

rust-gravatar is a small Rust library that generates Gravatar image URLs based on the official Gravatar specification.

Example

extern crate gravatar;
use gravatar::{Gravatar, Rating};

let mut g = Gravatar::new("email@example.com");
g.size = Some(150);
g.rating = Some(Rating::Pg);
assert_eq!(
    g.image_url(),
    "https://secure.gravatar.com/avatar/5658ffccee7f0ebfda2b226238b1eb6e\
     ?s=150&r=pg"
);