This is an Identicon implementation in rust.
```rust use identicon_rs::Identicon; use std::io;
fn main() -> Result<(), io::Error> { let fluffysamurai = String::from("fluffy-samurai"); let teststring = "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
.
Licensed under either of
at your option.
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.