symbolism 0.1.0

Unique symbols made from human readable tags.
Documentation
  • Coverage
  • 100%
    12 out of 12 items documented4 out of 8 items with examples
  • Size
  • Source code size: 56.43 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.1 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • konnorandrews/symbolism
    1 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • konnorandrews

Symbolism

Unique symbols made from human readable tags.

Version docs.rs Crates.io License Crates.io

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.

Contributing

Contributions in any form (issues, pull requests, etc.) to this project must adhere to Rust's Code of Conduct.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in symbolism by you shall be licensed as below, without any additional terms or conditions.

License

This project is licensed under either of

at your option.