segmentio / ksuid

K-Sortable Globally Unique IDs
https://segment.com/blog/a-brief-history-of-the-uuid/
MIT License
4.82k stars 174 forks source link

README: replace the Rust implementation #61

Closed tasn closed 2 years ago

tasn commented 2 years ago

When I created #49 I used the rust implementation that I thought was best based on looking at github/crates.io

Though having actually used it now, it's very much lacking, so I ended up implementing a new one that has a saner internal representation, integrates with the rest of the Rust ecosystem, and tests a good chunk of the KSUID value space for correctness, as can be seen in: https://github.com/svix/rust-ksuid/blob/main/tests/test_kuids.txt

achille-roussel commented 2 years ago

Nice work! I like the idea of making the timestamp precision configurable.

Thanks for the sending the README update as well!

tasn commented 2 years ago

Thanks! In retrospect, I should have probably gone for an even higher accuracy, so another extra byte or half a byte. Maybe in a future version. ;)