uuid-rs / uuid

Generate and parse UUIDs.
https://www.crates.io/crates/uuid
Other
995 stars 191 forks source link

version 6, v6, uuidv6 support #354

Closed naturallymitchell closed 5 years ago

naturallymitchell commented 5 years ago

uuidv6 was mentioned in a ULID issue (linked today from https://news.ycombinator.com/item?id=18768909)

KodrAus commented 5 years ago

Thanks for the suggestion @mitchtbaum!

Without being standardized I think it's a bit out-of-scope for uuid to support this one and call it v6, but since you can construct a uuid out of arbitrary bits you could support this yourself externally for the time being.

If it does make its way to standardisation then we'll definitely support it :+1:

kinggoesgaming commented 5 years ago

For now I am closing this. If ever in the future a v6 uuid is formalized, a relevant issue will be opened.

errhammr commented 3 years ago

Sorry for waking a sleeping dragon. I have a function to convert any UUIDv1 into a v6 one. Maybe it'll help someone.