#uuid #base32 #ids #identifier

uuid32

Uuids formatted as Strings in Crockford base32 for easier to read + copy urls, plus db

1 stable release

1.0.0 Oct 21, 2024

#1472 in Encoding

Download history 183/week @ 2024-10-19 15/week @ 2024-10-26

198 downloads per month

MIT license

8KB
119 lines

uuid32

Uuids formatted as Strings in Crockford base32 in Rust. Primarily for easy to copy ids in URLs, while retaining Uuid benefits.

In short, it just replaces the canonical hexadecimal formatting for displaying Uuids.

Just use Uuid32 anywhere you might otherwise use Uuid and it will pass the enclosed Uuid as a shorter String in json, display it more compactly in logs, etc.

In libraries and applications that use Uuid32s for talking to a postgres database, add feature postgres.

Linking the crate and the documentation for reference.

Dependencies

~0.8–9.5MB
~101K SLoC