Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/graysonarts/rust-minimal-id
A simple Unique(ish) Id generating library
https://github.com/graysonarts/rust-minimal-id
rust-library rustlang
Last synced: 9 days ago
JSON representation
A simple Unique(ish) Id generating library
- Host: GitHub
- URL: https://github.com/graysonarts/rust-minimal-id
- Owner: graysonarts
- Created: 2019-05-07T05:01:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-27T18:08:30.000Z (over 4 years ago)
- Last Synced: 2024-10-13T13:23:35.161Z (26 days ago)
- Topics: rust-library, rustlang
- Language: Rust
- Size: 33.2 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A library for generating random ids
Inspired by [How Long Does An Id Need To Be](https://eager.io/blog/how-long-does-an-id-need-to-be/), MinimalId is an Id generator that uses nine bytes to generate a mostly unique id with okay locality (to be proved)
## Usage
```rust
use minimal_id::Generator;
let generator = Generator::default();
let id = generator.generate();
println!("Id: {}", id.to_string());>>> Id: AAECAwQFBgcI
```