idgenerator-thin 0.2.1

Shorter ID and faster generation with a new snowflake drift algorithm. The core is to shorten the ID length, but also can have a very high instantaneous concurrent processing capacity (50W/0.1s), and powerful configuration capacity.
Documentation
1
2
3
4
5
6
7
/*
 * 版权属于:yitter(yitter@126.com)
 * 开源地址:https://github.com/yitter/idgenerator
 */
pub trait ISnowWorker {
    fn next_id(&self) -> i64;
}