Crates.io | tsid |
lib.rs | tsid |
version | 0.3.1 |
source | src |
created_at | 2023-09-16 00:40:26.752055 |
updated_at | 2024-08-06 19:30:00.897583 |
description | A Rust library for generating Time-Sorted Unique Identifiers |
homepage | |
repository | https://github.com/jakudlaty/tsid/ |
max_upload_size | |
id | 974044 |
size | 28,599 |
TSID generator for rust, this library is reimplementation of java tsid-creator created by Fabio Lima
Implementation status:
use tsid::create_tsid;
fn main() {
let tsid = create_tsid();
}
Crate features:
bson_as_string
- the same as for serdebson
- adds From bson conversionchrono
- Allow extracting DateTime from TDISdebug
- adds debug trait to TSIDdisplay
- add Display trait to TSIDserde_as_string
- tells serde to serialize TSID as string (disabling this feature means that serde will serialize to string for human readable formats ant tu u64 otherwise)serde
- adds serde dependency and serialization/deserialization