Crates.io | minimal-id |
lib.rs | minimal-id |
version | 0.8.0 |
source | src |
created_at | 2019-05-07 05:45:45.597085 |
updated_at | 2020-01-31 18:25:27.50175 |
description | A library that implements generating short, unique ids with minimal collisions and good locality |
homepage | |
repository | https://github.com/RussTheAerialist/rust-minimal-id |
max_upload_size | |
id | 132547 |
size | 17,816 |
Inspired by 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)
use minimal_id::Generator;
let generator = Generator::default();
let id = generator.generate();
println!("Id: {}", id.to_string());
>>> Id: AAECAwQFBgcI