{"id":33930629,"url":"https://github.com/rolag/lockfreehashmap-rs","last_synced_at":"2025-12-30T06:00:27.748Z","repository":{"id":62442392,"uuid":"125580284","full_name":"rolag/lockfreehashmap-rs","owner":"rolag","description":"A concurrent lock-free hash map for Rust.","archived":true,"fork":false,"pushed_at":"2021-02-01T00:31:26.000Z","size":903,"stargazers_count":21,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-13T21:45:21.105Z","etag":null,"topics":["concurrent-data-structure","hashmap","lock-free"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rolag.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2018-03-16T23:30:33.000Z","updated_at":"2024-05-11T09:42:10.000Z","dependencies_parsed_at":"2022-11-01T22:16:14.435Z","dependency_job_id":null,"html_url":"https://github.com/rolag/lockfreehashmap-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rolag/lockfreehashmap-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolag%2Flockfreehashmap-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolag%2Flockfreehashmap-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolag%2Flockfreehashmap-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolag%2Flockfreehashmap-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rolag","download_url":"https://codeload.github.com/rolag/lockfreehashmap-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolag%2Flockfreehashmap-rs/sbom","scorecard":{"id":783259,"data":{"date":"2025-08-11","repo":{"name":"github.com/rolag/lockfreehashmap-rs","commit":"dc884a36817a05929224e6198508edb418635c11"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T05:25:17.984Z","repository_id":62442392,"created_at":"2025-08-23T05:25:17.984Z","updated_at":"2025-08-23T05:25:17.984Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28124123,"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-30T02:00:05.476Z","response_time":64,"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":["concurrent-data-structure","hashmap","lock-free"],"created_at":"2025-12-12T12:02:33.508Z","updated_at":"2025-12-30T06:00:27.737Z","avatar_url":"https://github.com/rolag.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LockFreeHashMap-rs\n\n[![License](https://img.shields.io/badge/license-LGPL--3.0+-blue.svg)](https://github.com/rolag/lockfreehashmap)\n[![Cargo](https://img.shields.io/crates/v/lockfreehashmap.svg)](https://crates.io/crates/lockfreehashmap)\n[![Documentation](https://docs.rs/lockfreehashmap/badge.svg)](https://docs.rs/lockfreehashmap)\n[![Continuous Integration](https://api.travis-ci.org/rolag/lockfreehashmap-rs.svg?branch=master)](https://travis-ci.org/rolag/lockfreehashmap-rs)\n\nA concurrent, lock-free hash map for Rust.\n\nThis is an implementation of the lock-free hash map created by Dr. Cliff Click.\nClick released a [talk](https://www.youtube.com/watch?v=HJ-719EGIts) about his hash map.\nAdditionally, \"reference\" Java code is available\n[here](https://github.com/boundary/high-scale-lib/blob/master/src/main/java/org/cliffc/high_scale_lib/NonBlockingHashMap.java)\nand more recently\n[here](https://github.com/JCTools/JCTools/blob/master/jctools-core/src/main/java/org/jctools/maps/NonBlockingHashMap.java).\n\n## Getting Started\n\nThis crate is available on [crates.io](https://crates.io/crates/lockfreehashmap).\n\nTo use this crate in your project, add the following to your `Cargo.toml` file:\n```toml\n[dependencies]\nlockfreehashmap = \"0.1\"\n```\nand then add to your project root file:\n```rust\nextern crate lockfreehashmap;\n```\n\n## Example\n```rust\nextern crate lockfreehashmap;\nuse lockfreehashmap::LockFreeHashMap;\n\nfn main() {\n    let map = LockFreeHashMap::\u003cu8, u8\u003e::new();\n    let insert_guard = lockfreehashmap::pin();\n    for i in 1..4 {\n        map.insert(i, i, \u0026insert_guard);\n    }\n    drop(insert_guard);\n\n    let map = \u0026map;\n    lockfreehashmap::scope(|scope| {\n        // Spawn multiple threads, e.g. for a server that executes some actions on a loop\n        for _ in 0..16 {\n            scope.spawn(|| {\n                loop {\n                    let mut line = String::new();\n                    ::std::io::stdin().read_line(\u0026mut line).unwrap();\n                    let mut iter = line.split_whitespace();\n                    let command: \u0026str = iter.next().unwrap();\n                    let key: u8 = iter.next().unwrap().parse().unwrap();\n                    let value: u8 = iter.next().unwrap().parse().unwrap();\n                    let guard = lockfreehashmap::pin();\n                    let _result = match command {\n                        \"insert\" =\u003e map.insert(key, value, \u0026guard),\n                        _ =\u003e unimplemented!(),\n                    };\n                }\n            });\n        }\n    });\n}\n```\n\n## Documentation\nDocumentation is available on [docs.rs](https://docs.rs/lockfreehashmap).\n\nDeveloper documentation of private types is available [here](https://rolag.github.io/lockfreehashmap-rs/master/lockfreehashmap/).\n\n## Debugging\nTo use valgrind, add the following lines to the top of the `src/lib.rs` file.\n\n```rust\n#![feature(alloc_system, global_allocator, allocator_api)]\nextern crate alloc_system;\nuse alloc_system::System;\n#[global_allocator]\nstatic A: System = System;\n```\n\nThen call `valgrind --leak-check=full --show-leak-kinds=all ./target/debug/deps/lockfreehashmap-*`\n\n## License\nGNU Lesser General Public License v3.0 or any later version\n\nSee [LICENSE](LICENSE) and [LICENSE.LESSER](LICENSE.LESSER) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frolag%2Flockfreehashmap-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frolag%2Flockfreehashmap-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frolag%2Flockfreehashmap-rs/lists"}