#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

#1551 in Encoding

Download history 159/week @ 2024-10-16 38/week @ 2024-10-23 1/week @ 2024-10-30

131 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.7–9.5MB
~97K SLoC