tsid
TSID generator for rust, this library is reimplementation of java tsid-creator created by Fabio Lima
Goals:
- Generate TSID with simple, naive implementation
- Add basic tests to check compatibility
- Benchmarks (compare the speed to java library)
- Publish first usable version to crates.io
- GitHub actions workflow to CI
- Serde serialization
- Thread safety
How to use it?
use create_tsid;
let tsid = create_tsid
Crate features:
display- add Display trait to TSIDdebug- adds debug trait to TSIDserde- adds serde dependency and serialization/deserializationserde_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)bson- adds From bson conversionbson_as_string- the same as for serde