34 stable releases (7 major)
Uses new Rust 2024
| 7.1.0 | Feb 12, 2026 |
|---|---|
| 7.0.1 | Aug 28, 2025 |
| 7.0.0 | Jun 19, 2025 |
| 6.0.2 | Mar 19, 2025 |
| 0.2.2 | Feb 21, 2019 |
#97 in Images
3,988 downloads per month
Used in 2 crates
39KB
846 lines
Identicon-rs
This is an Identicon implementation in rust.
Documentation
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.
You will obtain images analogous to the following ones:
Minimum Supported Rust Version (MSRV) Policy
This project currently intends to keep our MSRV on a N-2 policy. That means that we will update the MSRV to at most 2 versions behind the current Rust version.
The MSRV is not automatically updated, however we will do our best to consider the benefits of each Rust release.
This policy is subject to changing at any time, but it won't change without a substantial feature needed.
License
Licensed under either of
-
Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
-
MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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
~10MB
~204K SLoC