4 releases (2 stable)

1.1.0 Feb 6, 2024
1.0.0 Feb 13, 2023
1.0.0-beta.1 Feb 1, 2024

#985 in Encoding

Download history 28/week @ 2024-06-02 25/week @ 2024-06-09 27/week @ 2024-06-16 23/week @ 2024-06-23 21/week @ 2024-06-30 15/week @ 2024-07-07 38/week @ 2024-07-14 23/week @ 2024-07-21 23/week @ 2024-07-28 31/week @ 2024-08-04 22/week @ 2024-08-11 15/week @ 2024-08-18 32/week @ 2024-08-25 35/week @ 2024-09-01 25/week @ 2024-09-08 30/week @ 2024-09-15

126 downloads per month
Used in 11 crates (4 directly)

MIT/Apache

24KB
503 lines

base64uuid

Base64Uuid type for representing base64url-encoded UUIDs.

The main motivation for using these is that their representation is slightly more compact compared to standard UUID string representation, and they look a bit better in URLs.

In addition, any UUIDs generated by this crate are chosen such that their string representations do not start with a dash (-), in order to avoid conflicts if they're used as command-line arguments.

Feature flags

  • creation: Allows creating Base64Uuid and Uuid directly (enabled by default)
  • fp-bindgen: Allows using Base64Uuid within fp-bindgen structs

lib.rs:

base64uuid

Base64Uuid type for representing base64url-encoded UUIDs.

The main motivation for using these is that their representation is slightly more compact compared to standard UUID string representation, and they look a bit better in URLs.

In addition, any UUIDs generated by this crate are chosen such that their string representations do not start with a dash (-), in order to avoid conflicts if they're used as command-line arguments.

Feature flags

  • creation: Allows creating Base64Uuid and Uuid directly (enabled by default)
  • fp-bindgen: Allows using Base64Uuid within fp-bindgen structs

Dependencies

~0.8–11MB
~138K SLoC