Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README: replace the Rust implementation #61

Merged
merged 1 commit into from
Jan 29, 2022

Conversation

tasn
Copy link
Contributor

@tasn tasn commented Jan 29, 2022

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

When I created segmentio#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
Copy link
Contributor

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

Thanks for the sending the README update as well!

@achille-roussel achille-roussel merged commit 5e9bc33 into segmentio:master Jan 29, 2022
@tasn
Copy link
Contributor Author

tasn commented Jan 30, 2022

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. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants