Expand description
This crate uses arithmetic coding to
compress a string literal into a u64 value. These compressed values are always unique per
input string.
The values can also be used in const generics. Which allows using strings
in types. The s macro provides a concise way to create symbols for these uses.
This crate was inspired by smol-symbol which uses
a fixed width encoding and a u128.
§no_std Support
This crate is always #![no_std], it can be used anywhere Rust can.
§Minimum Supported Rust Version
Requires Rust 1.71.0.
This crate follows the “Latest stable Rust” policy. The listed MSRV won’t be changed unless needed. However, updating the MSRV anywhere up to the latest stable at time of release is allowed.
Macros§
Structs§
- Symbol
- Unique symbol, given a unique tag.
Enums§
- Encode
Error - Error while encoding a tag for a
Symbol.