{"id":34599060,"url":"https://github.com/cipherself/conshash","last_synced_at":"2025-12-24T12:07:14.739Z","repository":{"id":33430945,"uuid":"37076253","full_name":"cipherself/conshash","owner":"cipherself","description":"conshash is a library to do consistent hashing in Rust.","archived":false,"fork":false,"pushed_at":"2021-04-18T10:15:49.000Z","size":9,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-06T12:48:43.816Z","etag":null,"topics":["consistent-hashing","distributed-systems","rust"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/conshash","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cipherself.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-08T15:43:07.000Z","updated_at":"2021-06-15T23:35:01.000Z","dependencies_parsed_at":"2022-08-29T01:50:33.395Z","dependency_job_id":null,"html_url":"https://github.com/cipherself/conshash","commit_stats":null,"previous_names":["cipherself/conshash","muattiyah/conshash"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/cipherself/conshash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cipherself%2Fconshash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cipherself%2Fconshash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cipherself%2Fconshash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cipherself%2Fconshash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cipherself","download_url":"https://codeload.github.com/cipherself/conshash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cipherself%2Fconshash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28002250,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-24T02:00:07.193Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["consistent-hashing","distributed-systems","rust"],"created_at":"2025-12-24T12:07:10.044Z","updated_at":"2025-12-24T12:07:14.730Z","avatar_url":"https://github.com/cipherself.png","language":"Rust","readme":"# conshash\n\n[![Build Status](https://travis-ci.org/muattiyah/conshash.svg?branch=master)](https://travis-ci.org/muattiyah/conshash)\n\nA library to do consistent hashing in Rust.\n\n## Crate\nGet the crate at [conshash](https://crates.io/crates/conshash)\n\n## Example\n\n ```Rust\nextern crate conshash;\n\n\n#[derive(Clone , Debug)]\nstruct TestNode {\n    host_name: \u0026'static str,\n    ip_address: \u0026'static str,\n    port: u32,\n}\n\nimpl ToString for TestNode {\n    fn to_string(\u0026self) -\u003e String {\n        format!(\"{}{}\", self.ip_address.to_string(), self.port.to_string())\n    }\n}\n\nlet mut hash_ring = Ring::new(5);\n\nlet test_node = TestNode{host_name: \"Skynet\", ip_address: \"192.168.1.1\", port: 42};\nhash_ring.add_node(\u0026test_node);\nhash_ring.remove_node(\u0026test_node);\nhash_ring.add_node(\u0026test_node);\nlet x = hash_ring.get_node(hash(\u0026format!(\"{}{}\", test_node.to_string(), 0.to_string())));\n// x is the node in the form of an Option\u003cT\u003e where T: Clone + ToString + Debug\n```\n\n## License\n[MIT](./LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcipherself%2Fconshash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcipherself%2Fconshash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcipherself%2Fconshash/lists"}