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

Download history 23/week @ 2024-07-22 10/week @ 2024-07-29 1/week @ 2024-08-05 1/week @ 2024-08-12 5/week @ 2024-08-19 6/week @ 2024-08-26 33/week @ 2024-09-02 26/week @ 2024-09-09 4/week @ 2024-09-16 50/week @ 2024-09-23 36/week @ 2024-09-30 8/week @ 2024-10-07 22/week @ 2024-10-14 22/week @ 2024-10-21 9/week @ 2024-10-28 14/week @ 2024-11-04

68 downloads per month
Used in 3 crates (via land-restful)

BSD-3-Clause

10KB
114 lines

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"
);

Dependencies

~2MB
~55K SLoC