Crates.io | ferrischat_snowflake_generator |
lib.rs | ferrischat_snowflake_generator |
version | 2.0.0 |
source | src |
created_at | 2021-08-06 06:58:18.942104 |
updated_at | 2022-01-02 02:46:24.983483 |
description | Library to generate guaranteed unique IDs for any purpose |
homepage | https://ferris.chat |
repository | https://github.com/FerrisChat/SnowflakeGenerator |
max_upload_size | |
id | 432345 |
size | 8,751 |
This library generates snowflakes based off Twitter's snowflake format with some modifications.
https://github.com/twitter-archive/snowflake/tree/snowflake-2010
time-safety-checks
: checks that the system clock has not rolled back since the last
snowflake generated and if it has, blocks until the time is after the time of the last snowflake.
Adds a slight performance penalty but isn't that noticeable. Enabled by default.