7 releases
Uses old Rust 2015
0.2.0 | Nov 10, 2018 |
---|---|
0.1.5 | May 14, 2016 |
0.1.4 | Mar 3, 2016 |
0.1.3 | Apr 4, 2015 |
0.1.2 | Mar 27, 2015 |
#8 in #wordpress
68 downloads per month
Used in 3 crates
(via land-restful)
10KB
114 lines
rust-gravatar
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"
);
Dependencies
~2MB
~55K SLoC