https://github.com/pseitz/cool-id-generator
https://github.com/pseitz/cool-id-generator
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/pseitz/cool-id-generator
- Owner: PSeitz
- License: mit
- Created: 2020-10-02T16:34:01.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-07-19T10:58:25.000Z (almost 4 years ago)
- Last Synced: 2025-04-11T21:14:27.256Z (about 1 year ago)
- Language: Rust
- Size: 225 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cool-id-generator
[](https://crates.io/crates/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:
```toml,ignore
[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)
```