We currently use UUIDv7 as time-ordered keys for various files in ella.
The uuid crate recommends v7 for this use case, however since the spec that includes v7 isn't actually stabilized yet, you have to use the uuid_unstable flag to access the v7 feature.
I initially thought this would be fine, but as it turns out it basically makes the crate unusable as a binary and difficult to use as a library, so I think the best course of action is to replace the v7 UUIDs.
It's a bit of a hack, but as a temporary workaround we can just manually re-implement the v7 logic from the uuid crate internally. Then we can switch it out once the feature is stabilized.
We currently use UUIDv7 as time-ordered keys for various files in ella.
The
uuid
crate recommends v7 for this use case, however since the spec that includes v7 isn't actually stabilized yet, you have to use theuuid_unstable
flag to access thev7
feature.I initially thought this would be fine, but as it turns out it basically makes the crate unusable as a binary and difficult to use as a library, so I think the best course of action is to replace the v7 UUIDs.
It's a bit of a hack, but as a temporary workaround we can just manually re-implement the v7 logic from the
uuid
crate internally. Then we can switch it out once the feature is stabilized.