#twitter #id-generator #snowflake-id #distributed #distributed-id #snofwlake

rsnowflake

Distributed id generator based on Twitter Snofwlake

3 unstable releases

Uses old Rust 2015

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

#11 in #distributed-id

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