#image #avatar #identicon

identicon-rs

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

16 releases (stable)

2.0.2 Sep 1, 2020
1.4.1 Jun 30, 2020
1.4.0 Oct 5, 2019
1.3.0 Mar 6, 2019
0.1.1 Feb 20, 2019

#37 in Images

Download history 42/week @ 2021-01-18 1/week @ 2021-01-25 5/week @ 2021-02-01 33/week @ 2021-02-08 91/week @ 2021-02-15 5/week @ 2021-02-22 2/week @ 2021-03-01 3/week @ 2021-03-08 4/week @ 2021-03-15 45/week @ 2021-03-22 32/week @ 2021-03-29 33/week @ 2021-04-05 136/week @ 2021-04-12 27/week @ 2021-04-19 11/week @ 2021-04-26 23/week @ 2021-05-03

95 downloads per month

MIT/Apache

22KB
231 lines

Identicon-rs

dependency status

This is an Identicon implementation in rust.

Example:

use identicon_rs::Identicon;
use std::io;

fn main() -> Result<(), io::Error> {
    let fluffy_samurai = String::from("fluffy-samurai");
    let test_string = "identicon_rs";

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

    // chained example with no border
    Identicon::new(test_string)
        .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.

TODO

  • add more information to README.md
  • add more examples

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

~5MB
~84K SLoC