#twitter #snofwlake

rsnowflake

Distributed id generator based on Twitter Snofwlake

3 unstable releases

0.1.1 Feb 8, 2019
0.1.0 Feb 2, 2019
0.0.3 Feb 2, 2019

#9 in #twitter

40 downloads per month

Apache-2.0/MIT

3KB

Snowflake based id generator library for Rust.

Latest Version Rust Documentation

Install

rsnowflake = "0.1"

Usage

let mut idgen = SnowflakeIdGenerator::new(1);
let uniqueId = idgen.generate();

[] Robin

No runtime deps