Crates.io | string_compressor |
lib.rs | string_compressor |
version | 1.0.1 |
source | src |
created_at | 2022-06-24 17:09:01.4172 |
updated_at | 2022-06-27 04:46:36.311329 |
description | A very fast hasher that optimizes for small hash sizes. |
homepage | https://github.com/craigfay/string_compressor |
repository | https://github.com/craigfay/string_compressor |
max_upload_size | |
id | 612515 |
size | 6,881 |
It exports the StringCompressor
struct that can be used to create minimally compact, non-colliding,
URL-safe, base-64 aliases for a set of strings. In simple terms, it's a very fast hasher that optimizes for small hash sizes.
StringCompressor
will support higher concurrently unique hashes.StringCompressor
will support a future flag that allows zero scaling in memory, at the expense of disallowing un-hashing.a
through z
and A
through Z
0
through 9
-
and _
Add this crate as a dependency in you're Cargo.toml
:
[dependencies]
# Install from Crates.io
string_compressor = { version = "1.0.1" }
# OR install from GitHub Release
string_compressor = { git = "https://github.com/craigfay/string_compressor", tag = "v1.0.1" }
# OR install from GitHub Branch
string_compressor = { git = "https://github.com/craigfay/string_compressor", branch = "main" }