minimal-id

Crates.iominimal-id
lib.rsminimal-id
version0.8.0
sourcesrc
created_at2019-05-07 05:45:45.597085
updated_at2020-01-31 18:25:27.50175
descriptionA library that implements generating short, unique ids with minimal collisions and good locality
homepage
repositoryhttps://github.com/RussTheAerialist/rust-minimal-id
max_upload_size
id132547
size17,816
Grayson (graysonarts)

documentation

README

A library for generating random ids

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)

Usage


use minimal_id::Generator;

let generator = Generator::default();
let id = generator.generate();
println!("Id: {}", id.to_string());

>>> Id: AAECAwQFBgcI
Commit count: 52

cargo fmt