short-uuid (0.1.0)

Published 2023-11-15 18:18:15 +01:00 by ThetaDev

Installation

[registry]
default = "forgejo"

[registries.forgejo]
index = "sparse+" # Sparse index
# index = "" # Git

[net]
git-fetch-with-cli = true
cargo add short-uuid@0.1.0

About this package

Generate and translate standard UUIDs into shorter formats

short-uuid

Rust port of the short-uuid library. It can encode and decode standard UUIDs into shorter formats.

Formats

From the original library

  • Base58Flickr (A-z, 1-9 without I, O, l, ordered Numbers < Lowercase < Uppercase>)
  • Base90Cookie (A-z, 0-9, !#$%&'()*+-./:<=>?@[]^_{|}~`, ordered Numbers < Lowercase < Uppercase < Special)

Additional encodings

  • Base58 (A-z, 1-9 without I, O, l, ordered Numbers < Uppercase < Lowercase)
  • Base62 (A-z, 0-9, ordered Uppercase < Lowercase < Numbers)
  • Base64 (A-z, 0-9, +/, ordered Uppercase < Lowercase < Numbers < Special)
  • Base64Url (A-z, 0-9, -_, ordered Uppercase < Lowercase < Numbers < Special)

Dependencies

ID Version
basen ^0.1.0
serde ^1.0.0
uuid ^1.3.2
serde ^1.0.0
serde_json ^1.0.0

Keywords

uuid base58 base62
Details
Cargo
2023-11-15 18:18:15 +01:00
20
ThetaDev <t.testboy@gmail.com>
MIT
4.1 KiB
Assets (1)
Versions (1) View all
0.1.0 2023-11-15