3 releases (breaking)

0.3.0 Sep 1, 2024
0.2.0 Aug 29, 2024
0.1.0 Aug 29, 2024

#14 in #rating

Download history 309/week @ 2024-08-26 41/week @ 2024-09-02 40/week @ 2024-09-16 5/week @ 2024-09-23 33/week @ 2024-09-30

90 downloads per month

MIT license

11KB
206 lines

Gravatar API Client for Rust

A small library to access the Gravatar API, inspired by rust-gravatar.

Example Usage

extern crate gravatar_api;
use gravatar_api::avatars;

let url = avatars::Avatar::builder("john.doe@example.com")
    .size(512)
    .default(avatars::Default::RoboHash)
    .rating(avatars::Rating::G)
    .build()
    .image_url();
assert_eq!(
    url.as_str(),
    "https://www.gravatar.com/avatar/836f82db99121b3481011f16b49dfa5fbc714a0d1b1b9f784a1ebbbf5b39577f?s=512&r=g&d=robohash"
);

Dependencies

~5–16MB
~205K SLoC