cool-id-generator

Crates.iocool-id-generator
lib.rscool-id-generator
version1.0.1
sourcesrc
created_at2020-10-02 17:06:07.898798
updated_at2022-07-19 10:58:36.791689
descriptiongenerates the best ids, which are fun to read and fun to eat
homepagehttps://github.com/PSeitz/cool-id-generator
repositoryhttps://github.com/PSeitz/cool-id-generator
max_upload_size
id295476
size274,534
(PSeitz)

documentation

README

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)
Commit count: 31

cargo fmt