flaken 0.2.0

Configurable bitwidth snowflake id generator, encoder, decoder
Documentation

Flaken

Build Status

A 64bit snowflake like id generator, encoder, and decoder which allows setting the bitwidths of each portion of the 64 bit encoded id.

let flake = Flaken::default().id(0).epoch(0).bitwidths(48, 12);
let id = flake.next();