#id-generator #human-readable #id #generator #readable #human #generate

cool-id-generator

generates the best ids, which are fun to read and fun to eat

5 releases (2 stable)

1.0.1 Jul 19, 2022
1.0.0 Apr 10, 2021
0.2.0 Dec 19, 2020
0.1.2 Oct 2, 2020
0.1.1 Oct 2, 2020

#113 in Value formatting

Download history 145/week @ 2024-11-16 199/week @ 2024-11-23 139/week @ 2024-11-30 258/week @ 2024-12-07 182/week @ 2024-12-14 131/week @ 2024-12-21 161/week @ 2024-12-28 177/week @ 2025-01-04 191/week @ 2025-01-11 244/week @ 2025-01-18 381/week @ 2025-01-25 168/week @ 2025-02-01 273/week @ 2025-02-08 259/week @ 2025-02-15 266/week @ 2025-02-22 313/week @ 2025-03-01

1,163 downloads per month
Used in motel

MIT license

275KB
19K SLoC

cool-id-generator

This is a no_std cool-id-generator. It makes memorable ids. honest-turbo-tailor-gregory, romantic-robot-chicken-kenneth and happy-ultra-barista-shane would approve.

Installation

Simply add a corresponding entry to your Cargo.toml dependency list:

[dependencies]
cool-id-generator = "1.0"

Tests

cargo test -- --nocapture

Benchmark

cargo bench

running 3 tests
test tests::bench_id           ... bench:         243 ns/iter (+/- 51)
test tests::bench_long_id      ... bench:         298 ns/iter (+/- 63)
test tests::bench_very_long_id ... bench:         328 ns/iter (+/- 46)

lib.rs:

This is a cool-id-generator.

It makes memorable ids. honest-turbo-tailor-gregory, romantic-robot-chicken-kenneth and happy-ultra-barista-shane would approve.

#[macro_use]
use cool_id_generator::{get_id, Size};

let my_id = get_id(Size::Medium);
println!("{:?}", my_id);
let my_long_id = get_id(Size::Long);
println!("{:?}", my_long_id);

Dependencies

~325KB