gravatar

Crates.iogravatar
lib.rsgravatar
version0.2.0
sourcesrc
created_at2015-03-20 20:18:20.615712
updated_at2018-11-10 19:46:25.879277
descriptionA small library that generates Gravatar image URLs.
homepagehttps://github.com/chowdhurya/rust-gravatar/
repositoryhttps://github.com/chowdhurya/rust-gravatar/
max_upload_size
id1625
size16,020
crates (github:multi-geth:crates)

documentation

https://docs.rs/gravatar/

README

rust-gravatar

Build Status Cargo version Libraries.io for GitHub 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 url = Gravatar::new("email@example.com")
    .set_size(Some(150))
    .set_rating(Some(Rating::Pg))
    .image_url();
assert_eq!(
    url.as_str(),
    "https://secure.gravatar.com/avatar/5658ffccee7f0ebfda2b226238b1eb6e?s=150&r=pg"
);
Commit count: 18

cargo fmt