chash 0.1.0

A consistent hashing library for Rust
Documentation
  • Coverage
  • 3.7%
    1 out of 27 items documented0 out of 22 items with examples
  • Size
  • Source code size: 40.68 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.31 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • ahmedtadde/chash
    11 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ahmedtadde

chash

License: MIT

This library provides a consistent hashring which simultaneously achieves both uniformity and consistency. It is a direct port of the Go pkg https://github.com/buraksezer/consistent.

For detailed information about the concept, you should take a look at the following resources:

Wishlist

  • Add benchmarks
  • Moar tests! Especially property based testing
  • async/await API
  • Pluggable storage w/ implementations: in-memory (possibly w/ DashMap), etcd, redis, and foundationdb
  • Performance Tuning (mostly the obvious stuff... no quest for glory)

License

Licensed under either of

at your option.

Contribution

  • Contributions are welcome! 🙏
  • Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.