4 releases (2 stable)

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

#895 in Encoding

Download history 3/week @ 2024-01-22 55/week @ 2024-01-29 142/week @ 2024-02-05 46/week @ 2024-02-12 126/week @ 2024-02-19 158/week @ 2024-02-26 89/week @ 2024-03-04 54/week @ 2024-03-11 23/week @ 2024-03-18 145/week @ 2024-03-25 84/week @ 2024-04-01 20/week @ 2024-04-08 26/week @ 2024-04-15 29/week @ 2024-04-22 24/week @ 2024-04-29 32/week @ 2024-05-06

115 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

~1–12MB
~144K SLoC