Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```