hashavatar 1.0.2

Stable deterministic procedural avatars in Rust with configurable identity hashing, WebP, optional PNG/JPEG/GIF, and SVG export
Documentation
1
2
3
4
5
6
7
8
9
10
use hashavatar::prelude::*;

fn main() -> Result<(), AvatarError> {
    let key = AvatarBuilder::for_id("user@example.com")
        .namespace("tenant-a", "v2")
        .cache_key()?;

    println!("{key}");
    Ok(())
}