# Identicon-rs [![Rust](https://github.com/conways-glider/identicon-rs/actions/workflows/rust.yml/badge.svg)](https://github.com/conways-glider/identicon-rs/actions/workflows/rust.yml) [![dependency status](https://deps.rs/crate/identicon-rs/6.0.1/status.svg)](https://deps.rs/crate/identicon-rs/6.0.1) [![Crates.io](https://img.shields.io/crates/v/identicon-rs)](https://crates.io/crates/identicon-rs) [![Documentation](https://docs.rs/identicon-rs/badge.svg)](https://docs.rs/identicon-rs) This is an Identicon implementation in rust. ## Documentation - [docs.rs](https://docs.rs/identicon-rs) - [GitHub Pages](https://conways-glider.github.io/identicon-rs/) ## Example ```rust 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`. You will obtain images analogous to the following ones:
## License Licensed under either of * Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or