Use the uuid crate #39

Open
opened 2025-12-07 19:37:23 +01:00 by cactusdualcore · 0 comments

UUIDs can be suprisingly difficult to work with. And in scenarios with long lived processes or networking (this server has both!), a wrong UUID implementation can cause subtle errors that really annoying to debug later.

I strongly recommend using the uuid crate over hacks like lib::utils::u128_to_uuid_without_dashes.

UUIDs can be suprisingly difficult to work with. And in scenarios with long lived processes or networking (this server has both!), a wrong UUID implementation can cause subtle errors that really _annoying_ to debug later. I strongly recommend using the [`uuid`](https://lib.rs/crates/uuid) crate over hacks like `lib::utils::u128_to_uuid_without_dashes`.
Sign in to join this conversation.
No description provided.