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

enum: add --uuid7 option to create UUID v7 identifiers #1914

Merged
merged 3 commits into from
Jun 24, 2024
Merged

Conversation

jqnatividad
Copy link
Collaborator

which are time-based and monotonically increasing now that the uuid v1.9.0 guarantees

let a = Uuid::now_v7();
let b = Uuid::now_v7();

assert!(a < b);

https://github.com/uuid-rs/uuid/releases/tag/1.9.0
https://buildkite.com/blog/goodbye-integers-hello-uuids
https://datatracker.ietf.org/doc/rfc9562/

@jqnatividad jqnatividad merged commit cfcbd87 into master Jun 24, 2024
11 of 14 checks passed
@jqnatividad jqnatividad deleted the enum-uuidv7 branch July 14, 2024 01:14
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.

1 participant