Crates.io | beryl |
lib.rs | beryl |
version | 0.1.1 |
source | src |
created_at | 2021-04-10 19:22:05.711348 |
updated_at | 2021-07-24 20:15:35.640575 |
description | 64-bit unique identifier format |
homepage | https://github.com/max-niederman/beryl |
repository | https://github.com/max-niederman/beryl.git |
max_upload_size | |
id | 381765 |
size | 19,807 |
Beryl is a format for unique identifiers. This crate implements utilities for generating these identifiers and splitting them into their component parts.
Beryl identifiers, or Crystals, are encoded into 64 bits as follows:
Beryl defines no standard epoch which a timestamp should be measured from, as the limited timestamp size (242 milliseconds is about 140 years) may call for non-standard epochs. For ease of use, the UNIX Epoch should be best.