Skip to content

chowdhurya/rust-gravatar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A small Rust library that generates Gravatar image URLs.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages