{"id":31753025,"url":"https://github.com/yahoojapan/k2hash_rust","last_synced_at":"2025-10-09T17:29:57.696Z","repository":{"id":313872712,"uuid":"1052372607","full_name":"yahoojapan/k2hash_rust","owner":"yahoojapan","description":"Official k2hash Rust Driver","archived":false,"fork":false,"pushed_at":"2025-09-09T09:48:34.000Z","size":262,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-09T10:01:44.129Z","etag":null,"topics":["antpickax","fullock","in-memory","k2hash","kvs","ly","nosql","queue","transaction","yahoojapan"],"latest_commit_sha":null,"homepage":"","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/yahoojapan.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-08T00:29:22.000Z","updated_at":"2025-09-09T09:43:24.000Z","dependencies_parsed_at":"2025-09-09T10:01:48.382Z","dependency_job_id":"f2f3a003-19be-48c9-a15b-0ac3a5440fae","html_url":"https://github.com/yahoojapan/k2hash_rust","commit_stats":null,"previous_names":["yahoojapan/k2hash_rust"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/yahoojapan/k2hash_rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yahoojapan%2Fk2hash_rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yahoojapan%2Fk2hash_rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yahoojapan%2Fk2hash_rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yahoojapan%2Fk2hash_rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yahoojapan","download_url":"https://codeload.github.com/yahoojapan/k2hash_rust/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yahoojapan%2Fk2hash_rust/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001872,"owners_count":26083197,"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-10-09T02:00:07.460Z","response_time":59,"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":["antpickax","fullock","in-memory","k2hash","kvs","ly","nosql","queue","transaction","yahoojapan"],"created_at":"2025-10-09T17:29:52.333Z","updated_at":"2025-10-09T17:29:57.690Z","avatar_url":"https://github.com/yahoojapan.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# k2hash_rust\n\n## Overview\n[![crates.io](https://img.shields.io/crates/v/k2hash_rust.svg)](https://crates.io/crates/k2hash_rust)\n[![Documentation](https://docs.rs/k2hash_rust/badge.svg)](https://docs.rs/k2hash_rust)\n[![CI](https://github.com/yahoojapan/k2hash_rust/actions/workflows/rust.yml/badge.svg)](https://github.com/yahoojapan/k2hash_rust/actions/workflows/rust.yml)\n\n**k2hash_rust** implements a [k2hash](https://k2hash.antpick.ax/) client in Rust.\n\n![k2hash Rust](https://raw.githubusercontent.com/yahoojapan/k2hash_rust/main/images/top_k2hash_rust.png)\n\n## Install\n\nFirstly you must install the [k2hash](https://k2hash.antpick.ax/) shared library.\n```sh\ncurl -o- https://raw.github.com/yahoojapan/k2hash_rust/main/utils/libk2hash.sh | bash\n```\nYou can install **k2hash** library step by step from [source code](https://github.com/yahoojapan/k2hash). See [Build](https://k2hash.antpick.ax/build.html) for details.\n\nDownload the **k2hash_rust** package.\n\n```sh\ncd /path/to/your/rust/project\ncargo add k2hash_rust\n```\n\n## Usage\n\nHere is a simple example of **k2hash_rust** that saves a key and get it.\n\n```rust\nuse k2hash_rust::K2hash;\n\nfn main() {\n    let db = K2hash::open_mem().expect(\"open_mem failed\");\n    db.set(\"foo\", \"bar\");\n    let v = db.get(\"foo\");\n    println!(\"foo =\u003e {:?}\", v);\n}\n```\n\nLet's run eamples!\n```\ncargo run --example basic_usage\n```\n\n## Development\n\nHere is the step to start developing **k2hash_rust** on Fedora42.\n\n```sh\nsudo dnf update -y\n```\n\n```sh\nsudo dnf makecache \u0026\u0026 sudo yum install curl git -y \u0026\u0026 curl -s https://packagecloud.io/install/repositories/antpickax/stable/script.rpm.sh | sudo bash\nsudo dnf install libfullock-devel k2hash-devel -y\ngit clone https://github.com/yahoojapan/k2hash_rust.git\ncd k2hash_rust\ncargo build\ncargo test\n```\n\n### Documents\n  - [About K2HASH](https://k2hash.antpick.ax/)\n  - [About AntPickax](https://antpick.ax/)\n\n### License\n\nMIT License. See the LICENSE file.\n\n## AntPickax\n\n[AntPickax](https://antpick.ax/) is \n  - an open source team in [LY Corporation](https://www.lycorp.co.jp/en/company/overview/). \n  - a product family of open source software developed by [AntPickax](https://antpick.ax/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyahoojapan%2Fk2hash_rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyahoojapan%2Fk2hash_rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyahoojapan%2Fk2hash_rust/lists"}