| Crates.io | tsid |
| lib.rs | tsid |
| version | 0.3.4 |
| created_at | 2023-09-16 00:40:26.752055+00 |
| updated_at | 2025-05-20 14:10:55.730476+00 |
| description | A Rust library for generating Time-Sorted Unique Identifiers |
| homepage | |
| repository | https://github.com/jakudlaty/tsid/ |
| max_upload_size | |
| id | 974044 |
| size | 49,470 |
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