#image #identicon #avatar

identicon-rs

identicon-rs is a library built around custom generation of identicon images

21 stable releases (3 major)

Uses new Rust 2021

3.1.4 Nov 7, 2022
3.0.0 Jul 12, 2022
2.3.0 Mar 9, 2022
2.0.2 Sep 1, 2020
0.2.2 Feb 21, 2019

#69 in Images

Download history 59/week @ 2022-08-13 86/week @ 2022-08-20 30/week @ 2022-08-27 10/week @ 2022-09-03 82/week @ 2022-09-10 38/week @ 2022-09-17 31/week @ 2022-09-24 11/week @ 2022-10-01 41/week @ 2022-10-08 13/week @ 2022-10-15 24/week @ 2022-10-22 32/week @ 2022-10-29 109/week @ 2022-11-05 38/week @ 2022-11-12 62/week @ 2022-11-19 13/week @ 2022-11-26

227 downloads per month

MIT/Apache

22KB
337 lines

Identicon-rs

Continuous Integration dependency status

This is an Identicon implementation in rust.

Example:

use identicon_rs::error::IdenticonError;
use identicon_rs::Identicon;

fn main() -> Result<(), IdenticonError> {
    let conways_glider = String::from("conways-glider");
    let test_string = "identicon_rs";

    // stored example
    let identicon_conways_glider = Identicon::new(&conways_glider);
    identicon_conways_glider.save_image("output_1.png")?;

    // chained example with no border
    Identicon::new(test_string)
        .set_border(0)
        .save_image("output_2.png")?;
    Ok(())
}

You can run this example with cargo run --example main.

The repository contains an example webservice that you can run with cargo run --example webserver.

License

Licensed under either of

at your option.

Contribution

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

Dependencies

~15MB
~187K SLoC