ColorID

Package version License

Color as Identify - The ColorID in Rust

一款基于颜色表示身份的 Rust 随机 ID 生成器

Install

toml [dependencies] nanoid = "0.0.1"

Usage

```rust use colorid::colorid;

fn main() { let id = colorid!(); // #A3F68E-#33EFAF-#8CB823-#D82C91 } ```

Benchmark

rust colorid time: [735.43 ns 735.51 ns 735.61 ns] uuid time: [750.16 ns 750.33 ns 750.62 ns] nanoid time: [926.34 ns 926.45 ns 926.57 ns]

run: 3045840932

License

MIT

ColorID in Other Languages