1
Fork 0
Gravatar image URL library for Rust. https://crates.io/crates/gravatar-rs
Go to file
Bauke 24f907b59b
Add configuration for image size.
2022-04-02 17:01:00 +02:00
source Add configuration for image size. 2022-04-02 17:01:00 +02:00
tests Rewrite tests to use snapshots. 2022-04-02 15:19:19 +02:00
.gitignore Initial commit! 🎉 2022-04-02 14:05:23 +02:00
Cargo.toml Add insta for snapshot testing. 2022-04-02 15:14:14 +02:00
LICENSE-Apache Initial commit! 🎉 2022-04-02 14:05:23 +02:00
LICENSE-MIT Initial commit! 🎉 2022-04-02 14:05:23 +02:00
README.md Add the readme. 2022-04-02 14:33:36 +02:00
rustfmt.toml Initial commit! 🎉 2022-04-02 14:05:23 +02:00

README.md

gravatar-rs

Gravatar image URL library

API

For full documentation see docs.rs.

use gravatar_rs::Generator;

let generator = Generator::default();

let gravatar_url = generator.generate("helllo@holllo.cc");

assert_eq!(
  gravatar_url,
  "https://www.gravatar.com/avatar/ebff9105dce4954b1bdb57fdab079ff3"
);

License

This project is licensed under either of Apache License, Version 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in either crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.