Crates.io | snowferris |
lib.rs | snowferris |
version | 1.0.2 |
source | src |
created_at | 2021-08-02 15:14:21.062934 |
updated_at | 2022-02-13 04:10:22.272963 |
description | various unique ID formats for Rust |
homepage | |
repository | https://git.sr.ht/~zachel/snowferris |
max_upload_size | |
id | 430481 |
size | 24,418 |
Snowferris is a open-sourced, ISC-licensed library implementing various (distributed) unique ID formats.
Add this package to the dependency section in Cargo.toml. Make sure to enable features that you're gonna use it in your projects.
Currently, we support
snowflake
nanoid
and plan to support
sno
sandflake
ksuid
xid
[x] nanoid
[ ] Snowflake - This would potentially cause a conflict between generated snowflake IDs AFAIK.
refer to this
Some bits of the Snowflake module was inspired from iCrawl/rustflake (github). nanoid implementation is based on nikolay-govorov/nanoid.